@@ -31,14 +31,13 @@ __all__ = [
31
31
"finalize" ,
32
32
]
33
33
34
- _CallableT = TypeVar ("_CallableT" , bound = Callable [..., Any ])
35
- _KT = TypeVar ("_KT" )
36
- _P = ParamSpec ("_P" )
37
- _R = TypeVar ("_R" )
38
34
_T = TypeVar ("_T" )
39
35
_T1 = TypeVar ("_T1" )
40
36
_T2 = TypeVar ("_T2" )
37
+ _KT = TypeVar ("_KT" )
41
38
_VT = TypeVar ("_VT" )
39
+ _CallableT = TypeVar ("_CallableT" , bound = Callable [..., Any ])
40
+ _P = ParamSpec ("_P" )
42
41
43
42
ProxyTypes : tuple [type [Any ], ...]
44
43
@@ -125,11 +124,11 @@ class WeakKeyDictionary(MutableMapping[_KT, _VT]):
125
124
@overload
126
125
def __ior__ (self : Self , other : Iterable [tuple [_KT , _VT ]]) -> Self : ...
127
126
128
- class finalize ( Generic [ _P , _T , _R ]) :
129
- def __init__ (self , __obj : _T , __func : Callable [_P , _R ], * args : _P .args , ** kwargs : _P .kwargs ) -> None : ...
130
- def __call__ (self , _ : object = ...) -> _R | None : ...
131
- def detach (self ) -> tuple [_T , Callable [ _P , _R ] , tuple [Any , ...], dict [str , Any ]] | None : ...
132
- def peek (self ) -> tuple [_T , Callable [ _P , _R ] , tuple [Any , ...], dict [str , Any ]] | None : ...
127
+ class finalize :
128
+ def __init__ (self , __obj : object , __func : Callable [_P , Any ], * args : _P .args , ** kwargs : _P .kwargs ) -> None : ...
129
+ def __call__ (self , _ : Any = ...) -> Any | None : ...
130
+ def detach (self ) -> tuple [Any , Any , tuple [Any , ...], dict [str , Any ]] | None : ...
131
+ def peek (self ) -> tuple [Any , Any , tuple [Any , ...], dict [str , Any ]] | None : ...
133
132
@property
134
133
def alive (self ) -> bool : ...
135
134
atexit : bool
0 commit comments