File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
packages/toolbox-core/src/toolbox_core Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,9 @@ async def __start_session() -> None:
64
64
65
65
coro = __start_session ()
66
66
67
- asyncio .run_coroutine_threadsafe (__start_session (), ToolboxSyncClient .__loop ).result ()
67
+ asyncio .run_coroutine_threadsafe (
68
+ __start_session (), ToolboxSyncClient .__loop
69
+ ).result ()
68
70
69
71
if not ToolboxSyncClient .__session :
70
72
raise ValueError ("Session cannot be None." )
@@ -158,9 +160,7 @@ def load_toolset(
158
160
"""
159
161
160
162
async_tools = self .__run_as_sync (
161
- self .__async_client .load_toolset (
162
- name , auth_token_getters , bound_params
163
- )
163
+ self .__async_client .load_toolset (name , auth_token_getters , bound_params )
164
164
)
165
165
166
166
if not self .__loop or not self .__thread :
@@ -170,7 +170,6 @@ def load_toolset(
170
170
tools .append (ToolboxSyncTool (async_tool , self .__loop , self .__thread ))
171
171
return tools
172
172
173
-
174
173
def __enter__ (self ):
175
174
"""Enter the runtime context related to this client instance."""
176
175
return self
You can’t perform that action at this time.
0 commit comments