File tree 1 file changed +3
-3
lines changed 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -7,10 +7,10 @@ if sys.version_info >= (3, 9):
7
7
_C = TypeVar ("_C" , bound = Callable [..., Any ])
8
8
_T = TypeVar ("_T" )
9
9
10
- class CallableProxyType (object ): # "weakcallableproxy"
10
+ class CallableProxyType (Generic [ _C ] ): # "weakcallableproxy"
11
11
def __getattr__ (self , attr : str ) -> Any : ...
12
12
13
- class ProxyType (object ): # "weakproxy"
13
+ class ProxyType (Generic [ _T ] ): # "weakproxy"
14
14
def __getattr__ (self , attr : str ) -> Any : ...
15
15
16
16
class ReferenceType (Generic [_T ]):
@@ -27,7 +27,7 @@ ref = ReferenceType
27
27
def getweakrefcount (__object : Any ) -> int : ...
28
28
def getweakrefs (object : Any ) -> List [Any ]: ...
29
29
@overload
30
- def proxy (object : _C , callback : Optional [Callable [[_C ], Any ]] = ...) -> CallableProxyType : ...
30
+ def proxy (object : _C , callback : Optional [Callable [[_C ], Any ]] = ...) -> CallableProxyType [ _C ] : ...
31
31
32
32
# Return CallableProxyType if object is callable, ProxyType otherwise
33
33
@overload
You can’t perform that action at this time.
0 commit comments