@@ -2882,13 +2882,13 @@ class datetime64(generic):
2882
2882
format : _CharLike_co | tuple [_CharLike_co , _IntLike_co ],
2883
2883
/ ,
2884
2884
) -> None : ...
2885
- def __add__ (self , other : _TD64Like_co ) -> datetime64 : ...
2886
- def __radd__ (self , other : _TD64Like_co ) -> datetime64 : ...
2885
+ def __add__ (self , other : _TD64Like_co , / ) -> datetime64 : ...
2886
+ def __radd__ (self , other : _TD64Like_co , / ) -> datetime64 : ...
2887
2887
@overload
2888
- def __sub__ (self , other : datetime64 ) -> timedelta64 : ...
2888
+ def __sub__ (self , other : datetime64 , / ) -> timedelta64 : ...
2889
2889
@overload
2890
- def __sub__ (self , other : _TD64Like_co ) -> datetime64 : ...
2891
- def __rsub__ (self , other : datetime64 ) -> timedelta64 : ...
2890
+ def __sub__ (self , other : _TD64Like_co , / ) -> datetime64 : ...
2891
+ def __rsub__ (self , other : datetime64 , / ) -> timedelta64 : ...
2892
2892
__lt__ : _ComparisonOp [datetime64 , _ArrayLikeDT64_co ]
2893
2893
__le__ : _ComparisonOp [datetime64 , _ArrayLikeDT64_co ]
2894
2894
__gt__ : _ComparisonOp [datetime64 , _ArrayLikeDT64_co ]
@@ -2911,9 +2911,9 @@ class integer(number[_NBit1]): # type: ignore
2911
2911
@property
2912
2912
def denominator (self ) -> L [1 ]: ...
2913
2913
@overload
2914
- def __round__ (self , ndigits : None = ...) -> int : ...
2914
+ def __round__ (self , ndigits : None = ..., / ) -> int : ...
2915
2915
@overload
2916
- def __round__ (self : _ScalarType , ndigits : SupportsIndex ) -> _ScalarType : ...
2916
+ def __round__ (self : _ScalarType , ndigits : SupportsIndex , / ) -> _ScalarType : ...
2917
2917
2918
2918
# NOTE: `__index__` is technically defined in the bottom-most
2919
2919
# sub-classes (`int64`, `uint32`, etc)
@@ -2926,20 +2926,20 @@ class integer(number[_NBit1]): # type: ignore
2926
2926
def __index__ (self ) -> int : ...
2927
2927
__truediv__ : _IntTrueDiv [_NBit1 ]
2928
2928
__rtruediv__ : _IntTrueDiv [_NBit1 ]
2929
- def __mod__ (self , value : _IntLike_co ) -> integer [Any ]: ...
2930
- def __rmod__ (self , value : _IntLike_co ) -> integer [Any ]: ...
2929
+ def __mod__ (self , value : _IntLike_co , / ) -> integer [Any ]: ...
2930
+ def __rmod__ (self , value : _IntLike_co , / ) -> integer [Any ]: ...
2931
2931
def __invert__ (self : _IntType ) -> _IntType : ...
2932
2932
# Ensure that objects annotated as `integer` support bit-wise operations
2933
- def __lshift__ (self , other : _IntLike_co ) -> integer [Any ]: ...
2934
- def __rlshift__ (self , other : _IntLike_co ) -> integer [Any ]: ...
2935
- def __rshift__ (self , other : _IntLike_co ) -> integer [Any ]: ...
2936
- def __rrshift__ (self , other : _IntLike_co ) -> integer [Any ]: ...
2937
- def __and__ (self , other : _IntLike_co ) -> integer [Any ]: ...
2938
- def __rand__ (self , other : _IntLike_co ) -> integer [Any ]: ...
2939
- def __or__ (self , other : _IntLike_co ) -> integer [Any ]: ...
2940
- def __ror__ (self , other : _IntLike_co ) -> integer [Any ]: ...
2941
- def __xor__ (self , other : _IntLike_co ) -> integer [Any ]: ...
2942
- def __rxor__ (self , other : _IntLike_co ) -> integer [Any ]: ...
2933
+ def __lshift__ (self , other : _IntLike_co , / ) -> integer [Any ]: ...
2934
+ def __rlshift__ (self , other : _IntLike_co , / ) -> integer [Any ]: ...
2935
+ def __rshift__ (self , other : _IntLike_co , / ) -> integer [Any ]: ...
2936
+ def __rrshift__ (self , other : _IntLike_co , / ) -> integer [Any ]: ...
2937
+ def __and__ (self , other : _IntLike_co , / ) -> integer [Any ]: ...
2938
+ def __rand__ (self , other : _IntLike_co , / ) -> integer [Any ]: ...
2939
+ def __or__ (self , other : _IntLike_co , / ) -> integer [Any ]: ...
2940
+ def __ror__ (self , other : _IntLike_co , / ) -> integer [Any ]: ...
2941
+ def __xor__ (self , other : _IntLike_co , / ) -> integer [Any ]: ...
2942
+ def __rxor__ (self , other : _IntLike_co , / ) -> integer [Any ]: ...
2943
2943
2944
2944
class signedinteger (integer [_NBit1 ]):
2945
2945
def __init__ (self , value : _IntValue = ..., / ) -> None : ...
@@ -3003,20 +3003,20 @@ class timedelta64(generic):
3003
3003
def __neg__ (self : _ArraySelf ) -> _ArraySelf : ...
3004
3004
def __pos__ (self : _ArraySelf ) -> _ArraySelf : ...
3005
3005
def __abs__ (self : _ArraySelf ) -> _ArraySelf : ...
3006
- def __add__ (self , other : _TD64Like_co ) -> timedelta64 : ...
3007
- def __radd__ (self , other : _TD64Like_co ) -> timedelta64 : ...
3008
- def __sub__ (self , other : _TD64Like_co ) -> timedelta64 : ...
3009
- def __rsub__ (self , other : _TD64Like_co ) -> timedelta64 : ...
3010
- def __mul__ (self , other : _FloatLike_co ) -> timedelta64 : ...
3011
- def __rmul__ (self , other : _FloatLike_co ) -> timedelta64 : ...
3006
+ def __add__ (self , other : _TD64Like_co , / ) -> timedelta64 : ...
3007
+ def __radd__ (self , other : _TD64Like_co , / ) -> timedelta64 : ...
3008
+ def __sub__ (self , other : _TD64Like_co , / ) -> timedelta64 : ...
3009
+ def __rsub__ (self , other : _TD64Like_co , / ) -> timedelta64 : ...
3010
+ def __mul__ (self , other : _FloatLike_co , / ) -> timedelta64 : ...
3011
+ def __rmul__ (self , other : _FloatLike_co , / ) -> timedelta64 : ...
3012
3012
__truediv__ : _TD64Div [float64 ]
3013
3013
__floordiv__ : _TD64Div [int64 ]
3014
- def __rtruediv__ (self , other : timedelta64 ) -> float64 : ...
3015
- def __rfloordiv__ (self , other : timedelta64 ) -> int64 : ...
3016
- def __mod__ (self , other : timedelta64 ) -> timedelta64 : ...
3017
- def __rmod__ (self , other : timedelta64 ) -> timedelta64 : ...
3018
- def __divmod__ (self , other : timedelta64 ) -> tuple [int64 , timedelta64 ]: ...
3019
- def __rdivmod__ (self , other : timedelta64 ) -> tuple [int64 , timedelta64 ]: ...
3014
+ def __rtruediv__ (self , other : timedelta64 , / ) -> float64 : ...
3015
+ def __rfloordiv__ (self , other : timedelta64 , / ) -> int64 : ...
3016
+ def __mod__ (self , other : timedelta64 , / ) -> timedelta64 : ...
3017
+ def __rmod__ (self , other : timedelta64 , / ) -> timedelta64 : ...
3018
+ def __divmod__ (self , other : timedelta64 , / ) -> tuple [int64 , timedelta64 ]: ...
3019
+ def __rdivmod__ (self , other : timedelta64 , / ) -> tuple [int64 , timedelta64 ]: ...
3020
3020
__lt__ : _ComparisonOp [_TD64Like_co , _ArrayLikeTD64_co ]
3021
3021
__le__ : _ComparisonOp [_TD64Like_co , _ArrayLikeTD64_co ]
3022
3022
__gt__ : _ComparisonOp [_TD64Like_co , _ArrayLikeTD64_co ]
@@ -3087,9 +3087,9 @@ class floating(inexact[_NBit1]):
3087
3087
def __getnewargs__ (self : float64 ) -> tuple [float ]: ...
3088
3088
def __getformat__ (self : float64 , typestr : L ["double" , "float" ], / ) -> str : ...
3089
3089
@overload
3090
- def __round__ (self , ndigits : None = ...) -> int : ...
3090
+ def __round__ (self , ndigits : None = ..., / ) -> int : ...
3091
3091
@overload
3092
- def __round__ (self : _ScalarType , ndigits : SupportsIndex ) -> _ScalarType : ...
3092
+ def __round__ (self : _ScalarType , ndigits : SupportsIndex , / ) -> _ScalarType : ...
3093
3093
__add__ : _FloatOp [_NBit1 ]
3094
3094
__radd__ : _FloatOp [_NBit1 ]
3095
3095
__sub__ : _FloatOp [_NBit1 ]
@@ -3170,13 +3170,14 @@ class void(flexible):
3170
3170
self , val : ArrayLike , dtype : DTypeLike , offset : int = ...
3171
3171
) -> None : ...
3172
3172
@overload
3173
- def __getitem__ (self , key : str | SupportsIndex ) -> Any : ...
3173
+ def __getitem__ (self , key : str | SupportsIndex , / ) -> Any : ...
3174
3174
@overload
3175
- def __getitem__ (self , key : list [str ]) -> void : ...
3175
+ def __getitem__ (self , key : list [str ], / ) -> void : ...
3176
3176
def __setitem__ (
3177
3177
self ,
3178
3178
key : str | list [str ] | SupportsIndex ,
3179
3179
value : ArrayLike ,
3180
+ / ,
3180
3181
) -> None : ...
3181
3182
3182
3183
class character (flexible ): # type: ignore
0 commit comments