Skip to content

Commit 796d5ce

Browse files
committed
fix stubs
1 parent 5563d05 commit 796d5ce

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
from typing import Any, Callable, TypeVar, overload
2-
from weakref import CallableProxyType
2+
from weakref import CallableProxyType, ProxyType
33

44
_C = TypeVar("_C", bound=Callable[..., Any])
55
_T = TypeVar("_T")
66

77
# Return CallableProxyType if object is callable, ProxyType otherwise
88
@overload
9-
def proxy(object: _C, callback: Callable[[_C], Any] | None = None, /) -> CallableProxyType[_C]: ...
9+
def proxy(object: _C, callback: Callable[[CallableProxyType[_C]], Any] | None = None, /) -> CallableProxyType[_C]: ...
1010
@overload
11-
def proxy(object: _T, callback: Callable[[_T], Any] | None = None, /) -> Any: ...
11+
def proxy(object: _T, callback: Callable[[ProxyType[_T]], Any] | None = None, /) -> ProxyType[_T]: ...

0 commit comments

Comments
 (0)