Skip to content

Commit 556fe3e

Browse files
authored
weakref: use positional-only args (#7653)
Co-authored-by: hauntsaninja <>
1 parent 435f758 commit 556fe3e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

stdlib/_weakref.pyi

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ class ReferenceType(Generic[_T]):
2828
ref = ReferenceType
2929

3030
def getweakrefcount(__object: Any) -> int: ...
31-
def getweakrefs(object: Any) -> list[Any]: ...
32-
@overload
33-
def proxy(object: _C, callback: Callable[[_C], Any] | None = ...) -> CallableProxyType[_C]: ...
31+
def getweakrefs(__object: Any) -> list[Any]: ...
3432

3533
# Return CallableProxyType if object is callable, ProxyType otherwise
3634
@overload
37-
def proxy(object: _T, callback: Callable[[_T], Any] | None = ...) -> Any: ...
35+
def proxy(__object: _C, __callback: Callable[[_C], Any] | None = ...) -> CallableProxyType[_C]: ...
36+
@overload
37+
def proxy(__object: _T, __callback: Callable[[_T], Any] | None = ...) -> Any: ...

0 commit comments

Comments
 (0)