Skip to content

Commit 88506f0

Browse files
authored
_weakref.ReferenceType.__new__: all args are pos-only (#9820)
Fixes #9712
1 parent 9b63a49 commit 88506f0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

stdlib/_weakref.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class ProxyType(Generic[_T]): # "weakproxy"
2020

2121
class ReferenceType(Generic[_T]):
2222
__callback__: Callable[[ReferenceType[_T]], Any]
23-
def __new__(cls, o: _T, callback: Callable[[ReferenceType[_T]], Any] | None = ...) -> Self: ...
23+
def __new__(cls, __o: _T, __callback: Callable[[ReferenceType[_T]], Any] | None = ...) -> Self: ...
2424
def __call__(self) -> _T | None: ...
2525
if sys.version_info >= (3, 9):
2626
def __class_getitem__(cls, item: Any) -> GenericAlias: ...

0 commit comments

Comments
 (0)