@@ -132,6 +132,9 @@ class staticmethod(Generic[_P, _R_co]):
132
132
@property
133
133
def __isabstractmethod__ (self ) -> bool : ...
134
134
def __init__ (self , __f : Callable [_P , _R_co ]) -> None : ...
135
+ @overload
136
+ def __get__ (self , __instance : None , __owner : type ) -> Callable [_P , _R_co ]: ...
137
+ @overload
135
138
def __get__ (self , __instance : _T , __owner : type [_T ] | None = None ) -> Callable [_P , _R_co ]: ...
136
139
if sys .version_info >= (3 , 10 ):
137
140
__name__ : str
@@ -142,16 +145,19 @@ class staticmethod(Generic[_P, _R_co]):
142
145
143
146
class classmethod (Generic [_T , _P , _R_co ]):
144
147
@property
145
- def __func__ (self ) -> Callable [Concatenate [_T , _P ], _R_co ]: ...
148
+ def __func__ (self ) -> Callable [Concatenate [type [ _T ] , _P ], _R_co ]: ...
146
149
@property
147
150
def __isabstractmethod__ (self ) -> bool : ...
148
- def __init__ (self , __f : Callable [Concatenate [_T , _P ], _R_co ]) -> None : ...
151
+ def __init__ (self , __f : Callable [Concatenate [type [_T ], _P ], _R_co ]) -> None : ...
152
+ @overload
149
153
def __get__ (self , __instance : _T , __owner : type [_T ] | None = None ) -> Callable [_P , _R_co ]: ...
154
+ @overload
155
+ def __get__ (self , __instance : None , __owner : type [_T ]) -> Callable [_P , _R_co ]: ...
150
156
if sys .version_info >= (3 , 10 ):
151
157
__name__ : str
152
158
__qualname__ : str
153
159
@property
154
- def __wrapped__ (self ) -> Callable [Concatenate [_T , _P ], _R_co ]: ...
160
+ def __wrapped__ (self ) -> Callable [Concatenate [type [ _T ] , _P ], _R_co ]: ...
155
161
156
162
class type :
157
163
@property
0 commit comments