Skip to content

Commit 9ace575

Browse files
committed
resolve comment
1 parent 27aa9d8 commit 9ace575

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/toolbox-core/src/toolbox_core/sync_client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,10 @@ def load_toolset(
163163

164164
if not self.__loop or not self.__thread:
165165
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
166+
return [
167+
ToolboxSyncTool(async_tool, self.__loop, self.__thread)
168+
for async_tool in async_tools
169+
]
170170

171171
def __enter__(self):
172172
"""Enter the runtime context related to this client instance."""

0 commit comments

Comments
 (0)