Skip to content

Commit 461e9d0

Browse files
committed
♻️ refactor(toolregistry): clean up imports in class_tool_integration
- remove duplicate imports of `Type` and `Union` for simplification - adjust import order and add `Optional` for improved readability
1 parent 6116f0f commit 461e9d0

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/toolregistry/class_tool_integration.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,11 @@
1313
['MyClass.method1', 'MyClass.method2', ...]
1414
"""
1515

16-
from typing import Type, Union
16+
from typing import Optional, Type, Union
1717

1818
from .tool_registry import ToolRegistry
1919

2020

21-
from typing import Type, Optional, Union, Protocol, Callable
22-
23-
2421
def _is_all_static_methods(cls: Type) -> bool:
2522
"""
2623
Determines if all the methods of a given class are static methods.

0 commit comments

Comments
 (0)