Skip to content

Commit dfe7768

Browse files
committed
fix mypy issue
1 parent dd4ebd9 commit dfe7768

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,22 +62,22 @@ def __name__(self) -> str:
6262
return self.__async_tool.__name__
6363

6464
@property
65-
def __doc__(self) -> Union[str, None]:
65+
def __doc__(self) -> Union[str, None]: # type: ignore[override]
6666
# Standard Python object attributes like __doc__ are technically "writable".
6767
# But not defining a setter function makes this a read-only property.
6868
# Mypy flags this issue in the type checks.
69-
return self.__async_tool.__doc__ # type: ignore[override]
69+
return self.__async_tool.__doc__
7070

7171
@property
7272
def __signature__(self) -> Signature:
7373
return self.__async_tool.__signature__
7474

7575
@property
76-
def __annotations__(self) -> dict[str, Any]:
76+
def __annotations__(self) -> dict[str, Any]: # type: ignore[override]
7777
# Standard Python object attributes like __doc__ are technically "writable".
7878
# But not defining a setter function makes this a read-only property.
7979
# Mypy flags this issue in the type checks.
80-
return self.__async_tool.__annotations__ # type: ignore[override]
80+
return self.__async_tool.__annotations__
8181

8282
def __call__(self, *args: Any, **kwargs: Any) -> str:
8383
"""

0 commit comments

Comments
 (0)