We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 27aa9d8 commit 9ace575Copy full SHA for 9ace575
packages/toolbox-core/src/toolbox_core/sync_client.py
@@ -163,10 +163,10 @@ def load_toolset(
163
164
if not self.__loop or not self.__thread:
165
raise ValueError("Background loop or thread cannot be None.")
166
- tools: list[ToolboxSyncTool] = []
167
- for async_tool in async_tools:
168
- tools.append(ToolboxSyncTool(async_tool, self.__loop, self.__thread))
169
- return tools
+ return [
+ ToolboxSyncTool(async_tool, self.__loop, self.__thread)
+ for async_tool in async_tools
+ ]
170
171
def __enter__(self):
172
"""Enter the runtime context related to this client instance."""
0 commit comments