Skip to content

Commit 5fec9d4

Browse files
committed
fix(weakref): make proxy return ProxyType[_T] for non-callable _T
Signed-off-by: Pavel Dydyshka <paul.dydyshko@gmail.com>
1 parent b9090e9 commit 5fec9d4

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
@@ -12,4 +12,4 @@ def getweakrefs(object: Any, /) -> list[Any]: ...
1212
@overload
1313
def proxy(object: _C, callback: Callable[[_C], Any] | None = None, /) -> CallableProxyType[_C]: ...
1414
@overload
15-
def proxy(object: _T, callback: Callable[[_T], Any] | None = None, /) -> Any: ...
15+
def proxy(object: _T, callback: Callable[[_T], Any] | None = None, /) -> ProxyType[_T]: ...

0 commit comments

Comments
 (0)