@@ -250,10 +250,6 @@ class int:
250
250
def __rmod__ (self , __x : int ) -> int : ...
251
251
def __rdivmod__ (self , __x : int ) -> tuple [int , int ]: ...
252
252
@overload
253
- def __pow__ (self , __x : int , __modulo : Literal [0 ]) -> NoReturn : ...
254
- @overload
255
- def __pow__ (self , __x : int , __modulo : int ) -> int : ...
256
- @overload
257
253
def __pow__ (self , __x : Literal [0 ]) -> Literal [1 ]: ...
258
254
@overload
259
255
def __pow__ (self , __x : Literal [0 ], __modulo : None ) -> Literal [1 ]: ...
@@ -265,6 +261,10 @@ class int:
265
261
# return type must be Any as `int | float` causes too many false-positive errors
266
262
@overload
267
263
def __pow__ (self , __x : int , __modulo : None = ...) -> Any : ...
264
+ @overload
265
+ def __pow__ (self , __x : int , __modulo : Literal [0 ]) -> NoReturn : ...
266
+ @overload
267
+ def __pow__ (self , __x : int , __modulo : int ) -> int : ...
268
268
def __rpow__ (self , __x : int , __mod : int | None = ...) -> Any : ...
269
269
def __and__ (self , __n : int ) -> int : ...
270
270
def __or__ (self , __n : int ) -> int : ...
0 commit comments