Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Chitius committed Jul 23, 2024
1 parent 16c4796 commit e1510ea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modelscope_agent/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,8 @@ def _register_tool(self,
tool_class_with_tenant = TOOL_REGISTRY[tool_name]

# adapt the TOOL_REGISTRY[tool_name] to origin tool class
if isinstance(tool_class_with_tenant, type) and issubclass(tool_class_with_tenant, BaseTool):
if isinstance(tool_class_with_tenant, type) and issubclass(
tool_class_with_tenant, BaseTool):
tool_class_with_tenant = {
'class': TOOL_REGISTRY[tool_name]
}
Expand Down

0 comments on commit e1510ea

Please sign in to comment.