@@ -54,7 +54,7 @@ from typing import ( # noqa: Y022
5454 overload ,
5555 type_check_only ,
5656)
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
5858
5959if sys .version_info >= (3 , 9 ):
6060 from types import GenericAlias
@@ -75,6 +75,7 @@ _SupportsNextT = TypeVar("_SupportsNextT", bound=SupportsNext[Any], covariant=Tr
7575_SupportsAnextT = TypeVar ("_SupportsAnextT" , bound = SupportsAnext [Any ], covariant = True )
7676_AwaitableT = TypeVar ("_AwaitableT" , bound = Awaitable [Any ])
7777_AwaitableT_co = TypeVar ("_AwaitableT_co" , bound = Awaitable [Any ], covariant = True )
78+ _P = ParamSpec ("_P" )
7879
7980class object :
8081 __doc__ : str | None
@@ -113,32 +114,32 @@ class object:
113114 @classmethod
114115 def __subclasshook__ (cls , __subclass : type ) -> bool : ...
115116
116- class staticmethod (Generic [_R_co ]):
117+ class staticmethod (Generic [_P , _R_co ]):
117118 @property
118- def __func__ (self ) -> Callable [... , _R_co ]: ...
119+ def __func__ (self ) -> Callable [_P , _R_co ]: ...
119120 @property
120121 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 ]: ...
123124 if sys .version_info >= (3 , 10 ):
124125 __name__ : str
125126 __qualname__ : str
126127 @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 : ...
129130
130- class classmethod (Generic [_R_co ]):
131+ class classmethod (Generic [_T , _P , _R_co ]):
131132 @property
132- def __func__ (self ) -> Callable [... , _R_co ]: ...
133+ def __func__ (self ) -> Callable [Concatenate [ _T , _P ] , _R_co ]: ...
133134 @property
134135 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 ]: ...
137138 if sys .version_info >= (3 , 10 ):
138139 __name__ : str
139140 __qualname__ : str
140141 @property
141- def __wrapped__ (self ) -> Callable [... , _R_co ]: ...
142+ def __wrapped__ (self ) -> Callable [Concatenate [ _T , _P ] , _R_co ]: ...
142143
143144class type :
144145 @property
0 commit comments