Skip to content

Commit

Permalink
add reasoning on why skip some static type checking
Browse files Browse the repository at this point in the history
  • Loading branch information
ProKil committed Jul 28, 2024
1 parent 60d8033 commit cf419ea
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions haicosystem/tools/tool_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ def register_tool(
# Note on ignoring the static type check:
# We ignore the static type checking of the tools
# because the tools' call method is dynamically type checked
# Since tool instantiation is done in the import time,
# we will be able to dynamically type check the tools
cls.registry[toolkit_name][tool_name] = tool # type: ignore[assignment]
tool.name = tool_name
tool.toolkit = toolkit_name
Expand Down

0 comments on commit cf419ea

Please sign in to comment.