Skip to content

Commit 7b5e64d

Browse files
committed
style: format test_langchain_tools.py with pinned ruff
Reformat the test file with the repo-pinned ruff (0.4.8). Pure formatting change (signature line collapsing); the callback-manager filtering logic and sync/async regression coverage are unchanged. Signed-off-by: godququ5-code <godququ5@gmail.com>
1 parent 315e4f0 commit 7b5e64d

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

python/packages/autogen-ext/tests/tools/test_langchain_tools.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -181,14 +181,10 @@ class NoSchemaAsyncManagerTool(LangChainTool):
181181
name: str = "NoSchemaAsyncManager"
182182
description: str = "a tool whose sync _run is annotated with the async callback manager type"
183183

184-
def _run(
185-
self, a: int, b: int, run_manager: Optional[AsyncCallbackManagerForToolRun] = None
186-
) -> int:
184+
def _run(self, a: int, b: int, run_manager: Optional[AsyncCallbackManagerForToolRun] = None) -> int:
187185
return a + b
188186

189-
async def _arun(
190-
self, a: int, b: int, run_manager: Optional[AsyncCallbackManagerForToolRun] = None
191-
) -> int:
187+
async def _arun(self, a: int, b: int, run_manager: Optional[AsyncCallbackManagerForToolRun] = None) -> int:
192188
return a + b
193189

194190

0 commit comments

Comments
 (0)