Skip to content

Commit 7ac57e5

Browse files
committed
refactor(toolset): add explicit return statements and improve code formatting
Add explicit return None statements in ToolSet methods and improve code formatting for better readability and consistency across the codebase. 在 ToolSet 方法中添加显式的返回语句并改进代码格式 在 ToolSet 方法中添加显式的 return None 语句,并改进代码格式以提高代码库的一致性和可读性。 Change-Id: Icd499f1ccb977bc443f690d81b0694535dc1b99a Signed-off-by: OhYee <oyohyee@oyohyee.com>
1 parent 44489a6 commit 7ac57e5

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

agentrun/toolset/__toolset_async_template.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ def _get_openapi_base_url(self) -> Optional[str]:
107107
None,
108108
)
109109

110+
return None
111+
110112
async def get_async(self, config: Optional[Config] = None):
111113
if self.name is None:
112114
raise ValueError("ToolSet name is required to get the ToolSet.")

agentrun/toolset/toolset.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ def _get_openapi_base_url(self) -> Optional[str]:
122122
None,
123123
)
124124

125+
return None
126+
125127
async def get_async(self, config: Optional[Config] = None):
126128
if self.name is None:
127129
raise ValueError("ToolSet name is required to get the ToolSet.")

0 commit comments

Comments
 (0)