Skip to content

Commit d219f8f

Browse files
Update weakref.pyi
1 parent 2bf6f10 commit d219f8f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
from collections.abc import Callable
2-
from typing import Any, Generic, TypeVar
2+
from typing import Any, Generic, Optional, TypeVar
33
from typing_extensions import Self
44

55
_T = TypeVar("_T")
66

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: ...
10+
def __call__(self) -> Optional[_T]: ...
1111

1212
ref = ReferenceType

0 commit comments

Comments
 (0)