Skip to content

Commit 07b3dfd

Browse files
committed
fix: Use correct name property while creating sync tool qualname
1 parent 25f9f78 commit 07b3dfd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@ def __init__(
6565
# itself is being processed during module import or class definition.
6666
# Defining __qualname__ as a property leads to a TypeError because the class object needs
6767
# a string value immediately, not a descriptor that evaluates later.
68-
self.__qualname__ = f"{self.__class__.__qualname__}.{self.__async_tool._name}"
68+
self.__qualname__ = (
69+
f"{self.__class__.__qualname__}.{self.__async_tool.__name__}"
70+
)
6971

7072
@property
7173
def __name__(self) -> str:

0 commit comments

Comments
 (0)