3
3
# NOTE: This dynamically typed stub was automatically generated by stubgen.
4
4
5
5
from abc import ABCMeta , abstractmethod
6
- from typing import Any , Callable , Dict , Iterator , Optional , Sequence , Tuple , TypeVar
6
+ from typing import Any , Callable , Generic , Dict , Iterator , Optional , Sequence , Tuple , TypeVar
7
7
from collections import namedtuple
8
8
9
9
_AnyCallable = Callable [..., Any ]
@@ -21,9 +21,9 @@ def wraps(wrapped: _AnyCallable, assigned: Sequence[str] = ..., updated: Sequenc
21
21
def total_ordering (cls : type ) -> type : ...
22
22
def cmp_to_key (mycmp : Callable [[_T , _T ], bool ]) -> Callable [[_T ], Any ]: ...
23
23
24
- class partial (object ):
25
- func = ... # Callable[..., Any ]
24
+ class partial (Generic [ _T ] ):
25
+ func = ... # Callable[..., _T ]
26
26
args = ... # type: Tuple[Any, ...]
27
27
keywords = ... # type: Dict[str, Any]
28
- def __init__ (self , func : Callable [..., Any ], * args : Any , ** kwargs : Any ) -> None : ...
29
- def __call__ (self , * args : Any , ** kwargs : Any ) -> Any : ...
28
+ def __init__ (self , func : Callable [..., _T ], * args : Any , ** kwargs : Any ) -> None : ...
29
+ def __call__ (self , * args : Any , ** kwargs : Any ) -> _T : ...
0 commit comments