Skip to content

Commit f10c3d8

Browse files
committed
fix: error: "ReferenceType[object]" not callable
1 parent 49d9cc0 commit f10c3d8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test-data/unit/lib-stub/weakref.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@ _T = TypeVar("_T")
77
class ReferenceType(Generic[_T]): # "weakref"
88
__callback__: Callable[[Self], Any]
99
def __new__(cls, o: _T, callback: Callable[[Self], Any] | None = ..., /) -> Self: ...
10+
def __call__(self) -> _T: ...
1011

1112
ref = ReferenceType

0 commit comments

Comments
 (0)