Skip to content

Commit ec1a0c7

Browse files
committed
chore: Delint
1 parent 23762cc commit ec1a0c7

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

packages/toolbox-langchain/src/toolbox_langchain/client.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,7 @@ async def aload_tool(
9797
else:
9898
# Otherwise, run in the background thread.
9999
core_tool = await asyncio.wrap_future(
100-
asyncio.run_coroutine_threadsafe(
101-
coro, self.__core_sync_client._loop
102-
)
100+
asyncio.run_coroutine_threadsafe(coro, self.__core_sync_client._loop)
103101
)
104102

105103
core_sync_tool = ToolboxSyncTool(
@@ -179,9 +177,7 @@ async def aload_toolset(
179177
else:
180178
# Otherwise, run in the background thread.
181179
core_tools = await asyncio.wrap_future(
182-
asyncio.run_coroutine_threadsafe(
183-
coro, self.__core_sync_client._loop
184-
)
180+
asyncio.run_coroutine_threadsafe(coro, self.__core_sync_client._loop)
185181
)
186182

187183
core_sync_tools = [

packages/toolbox-langchain/src/toolbox_langchain/tools.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,7 @@ async def _arun(self, **kwargs: Any) -> dict[str, Any]:
5757

5858
# Otherwise, run in the background thread.
5959
return await asyncio.wrap_future(
60-
asyncio.run_coroutine_threadsafe(
61-
coro, self.__core_sync_tool._loop
62-
)
60+
asyncio.run_coroutine_threadsafe(coro, self.__core_sync_tool._loop)
6361
)
6462

6563
def add_auth_token_getters(

0 commit comments

Comments
 (0)