@@ -54,7 +54,7 @@ from typing import ( # noqa: Y022
54
54
overload ,
55
55
type_check_only ,
56
56
)
57
- from typing_extensions import Literal , LiteralString , Self , SupportsIndex , TypeAlias , TypeGuard , final
57
+ from typing_extensions import Concatenate , Literal , LiteralString , ParamSpec , Self , SupportsIndex , TypeAlias , TypeGuard , final
58
58
59
59
if sys .version_info >= (3 , 9 ):
60
60
from types import GenericAlias
@@ -75,6 +75,7 @@ _SupportsNextT = TypeVar("_SupportsNextT", bound=SupportsNext[Any], covariant=Tr
75
75
_SupportsAnextT = TypeVar ("_SupportsAnextT" , bound = SupportsAnext [Any ], covariant = True )
76
76
_AwaitableT = TypeVar ("_AwaitableT" , bound = Awaitable [Any ])
77
77
_AwaitableT_co = TypeVar ("_AwaitableT_co" , bound = Awaitable [Any ], covariant = True )
78
+ _P = ParamSpec ("_P" )
78
79
79
80
class object :
80
81
__doc__ : str | None
@@ -113,32 +114,32 @@ class object:
113
114
@classmethod
114
115
def __subclasshook__ (cls , __subclass : type ) -> bool : ...
115
116
116
- class staticmethod (Generic [_R_co ]):
117
+ class staticmethod (Generic [_P , _R_co ]):
117
118
@property
118
- def __func__ (self ) -> Callable [... , _R_co ]: ...
119
+ def __func__ (self ) -> Callable [_P , _R_co ]: ...
119
120
@property
120
121
def __isabstractmethod__ (self ) -> bool : ...
121
- def __init__ (self : staticmethod [ _R_co ] , __f : Callable [... , _R_co ]) -> None : ...
122
- def __get__ (self , __instance : _T , __owner : type [_T ] | None = None ) -> Callable [... , _R_co ]: ...
122
+ def __init__ (self , __f : Callable [_P , _R_co ]) -> None : ...
123
+ def __get__ (self , __instance : _T , __owner : type [_T ] | None = None ) -> Callable [_P , _R_co ]: ...
123
124
if sys .version_info >= (3 , 10 ):
124
125
__name__ : str
125
126
__qualname__ : str
126
127
@property
127
- def __wrapped__ (self ) -> Callable [... , _R_co ]: ...
128
- def __call__ (self , * args : Any , ** kwargs : Any ) -> _R_co : ...
128
+ def __wrapped__ (self ) -> Callable [_P , _R_co ]: ...
129
+ def __call__ (self , * args : _P . args , ** kwargs : _P . kwargs ) -> _R_co : ...
129
130
130
- class classmethod (Generic [_R_co ]):
131
+ class classmethod (Generic [_T , _P , _R_co ]):
131
132
@property
132
- def __func__ (self ) -> Callable [... , _R_co ]: ...
133
+ def __func__ (self ) -> Callable [Concatenate [ _T , _P ] , _R_co ]: ...
133
134
@property
134
135
def __isabstractmethod__ (self ) -> bool : ...
135
- def __init__ (self : classmethod [ _R_co ] , __f : Callable [... , _R_co ]) -> None : ...
136
- def __get__ (self , __instance : _T , __owner : type [_T ] | None = None ) -> Callable [... , _R_co ]: ...
136
+ def __init__ (self , __f : Callable [Concatenate [ _T , _P ] , _R_co ]) -> None : ...
137
+ def __get__ (self , __instance : _T , __owner : type [_T ] | None = None ) -> Callable [_P , _R_co ]: ...
137
138
if sys .version_info >= (3 , 10 ):
138
139
__name__ : str
139
140
__qualname__ : str
140
141
@property
141
- def __wrapped__ (self ) -> Callable [... , _R_co ]: ...
142
+ def __wrapped__ (self ) -> Callable [Concatenate [ _T , _P ] , _R_co ]: ...
142
143
143
144
class type :
144
145
@property
0 commit comments