From ced8f482eb5bfd678d2f762ef0eed11aaa50ed33 Mon Sep 17 00:00:00 2001 From: dha-aa <172045152+dha-aa@users.noreply.github.com> Date: Thu, 24 Apr 2025 09:17:42 +0000 Subject: [PATCH] run pre-commit --all-files --- examples/custom-functions/file_upload.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/custom-functions/file_upload.py b/examples/custom-functions/file_upload.py index 827c0b637..d79f33cd5 100644 --- a/examples/custom-functions/file_upload.py +++ b/examples/custom-functions/file_upload.py @@ -70,7 +70,7 @@ async def read_file(path: str, available_file_paths: list[str]): if path not in available_file_paths: return ActionResult(error=f'File path {path} is not available') - async with (await anyio.open_file(path, 'r')) as f: + async with await anyio.open_file(path, 'r') as f: content = await f.read() msg = f'File content: {content}' logger.info(msg)