File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
packages/toolbox-core/src/toolbox_core Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -62,16 +62,22 @@ def __name__(self) -> str:
62
62
return self .__async_tool .__name__
63
63
64
64
@property
65
- def __doc__ (self ) -> str | None : # Docstring can be None
66
- return self .__async_tool .__doc__
65
+ def __doc__ (self ) -> Union [str , None ]:
66
+ # Standard Python object attributes like __doc__ are technically "writable".
67
+ # But not defining a setter function makes this a read-only property.
68
+ # Mypy flags this issue in the type checks.
69
+ return self .__async_tool .__doc__ # type: ignore[override]
67
70
68
71
@property
69
72
def __signature__ (self ) -> Signature :
70
73
return self .__async_tool .__signature__
71
74
72
75
@property
73
76
def __annotations__ (self ) -> dict [str , Any ]:
74
- return self .__async_tool .__annotations__
77
+ # Standard Python object attributes like __doc__ are technically "writable".
78
+ # But not defining a setter function makes this a read-only property.
79
+ # Mypy flags this issue in the type checks.
80
+ return self .__async_tool .__annotations__ # type: ignore[override]
75
81
76
82
def __call__ (self , * args : Any , ** kwargs : Any ) -> str :
77
83
"""
You can’t perform that action at this time.
0 commit comments