Fix mypy warning, closes #1146

This commit is contained in:
Simon Willison 2025-06-01 17:03:44 -07:00
parent 30e0c4abe8
commit 65dde782b7

View file

@ -2548,7 +2548,7 @@ def tools():
)
def tools_list(json_, python_tools):
"List available tools that have been provided by plugins"
tools: Dict[str, Union[Tool, Type[Toolbox]]] = get_tools()
tools = get_tools()
if python_tools:
for code_or_path in python_tools:
for tool in _tools_from_code(code_or_path):