Skip to content

Commit d620c25

Browse files
committed
added qualname
1 parent eb28453 commit d620c25

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/toolbox-core/src/toolbox_core/sync_tool.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ def __init__(
5555
self.__async_tool = async_tool
5656
self.__loop = loop
5757
self.__thread = thread
58-
# TODO: self.__qualname__ ?? (Consider if needed)
5958

6059
@property
6160
def __name__(self) -> str:
@@ -79,6 +78,10 @@ def __annotations__(self) -> dict[str, Any]: # type: ignore[override]
7978
# Mypy flags this issue in the type checks.
8079
return self.__async_tool.__annotations__
8180

81+
@property
82+
def __qualname__(self) -> str:
83+
return f"{self.__class__.__qualname__}.{self.__name__}"
84+
8285
def __call__(self, *args: Any, **kwargs: Any) -> str:
8386
"""
8487
Synchronously calls the remote tool with the provided arguments.

0 commit comments

Comments
 (0)