mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
weakref: use positional-only args (#7653)
Co-authored-by: hauntsaninja <>
This commit is contained in:
@@ -28,10 +28,10 @@ class ReferenceType(Generic[_T]):
|
||||
ref = ReferenceType
|
||||
|
||||
def getweakrefcount(__object: Any) -> int: ...
|
||||
def getweakrefs(object: Any) -> list[Any]: ...
|
||||
@overload
|
||||
def proxy(object: _C, callback: Callable[[_C], Any] | None = ...) -> CallableProxyType[_C]: ...
|
||||
def getweakrefs(__object: Any) -> list[Any]: ...
|
||||
|
||||
# Return CallableProxyType if object is callable, ProxyType otherwise
|
||||
@overload
|
||||
def proxy(object: _T, callback: Callable[[_T], Any] | None = ...) -> Any: ...
|
||||
def proxy(__object: _C, __callback: Callable[[_C], Any] | None = ...) -> CallableProxyType[_C]: ...
|
||||
@overload
|
||||
def proxy(__object: _T, __callback: Callable[[_T], Any] | None = ...) -> Any: ...
|
||||
|
||||
Reference in New Issue
Block a user