@@ -3763,19 +3763,19 @@ class poly1d:
3763
3763
def __len__ (self ) -> int : ...
3764
3764
def __neg__ (self ) -> poly1d : ...
3765
3765
def __pos__ (self ) -> poly1d : ...
3766
- def __mul__ (self , other : ArrayLike ) -> poly1d : ...
3767
- def __rmul__ (self , other : ArrayLike ) -> poly1d : ...
3768
- def __add__ (self , other : ArrayLike ) -> poly1d : ...
3769
- def __radd__ (self , other : ArrayLike ) -> poly1d : ...
3770
- def __pow__ (self , val : _FloatLike_co ) -> poly1d : ... # Integral floats are accepted
3771
- def __sub__ (self , other : ArrayLike ) -> poly1d : ...
3772
- def __rsub__ (self , other : ArrayLike ) -> poly1d : ...
3773
- def __div__ (self , other : ArrayLike ) -> poly1d : ...
3774
- def __truediv__ (self , other : ArrayLike ) -> poly1d : ...
3775
- def __rdiv__ (self , other : ArrayLike ) -> poly1d : ...
3776
- def __rtruediv__ (self , other : ArrayLike ) -> poly1d : ...
3777
- def __getitem__ (self , val : int ) -> Any : ...
3778
- def __setitem__ (self , key : int , val : Any ) -> None : ...
3766
+ def __mul__ (self , other : ArrayLike , / ) -> poly1d : ...
3767
+ def __rmul__ (self , other : ArrayLike , / ) -> poly1d : ...
3768
+ def __add__ (self , other : ArrayLike , / ) -> poly1d : ...
3769
+ def __radd__ (self , other : ArrayLike , / ) -> poly1d : ...
3770
+ def __pow__ (self , val : _FloatLike_co , / ) -> poly1d : ... # Integral floats are accepted
3771
+ def __sub__ (self , other : ArrayLike , / ) -> poly1d : ...
3772
+ def __rsub__ (self , other : ArrayLike , / ) -> poly1d : ...
3773
+ def __div__ (self , other : ArrayLike , / ) -> poly1d : ...
3774
+ def __truediv__ (self , other : ArrayLike , / ) -> poly1d : ...
3775
+ def __rdiv__ (self , other : ArrayLike , / ) -> poly1d : ...
3776
+ def __rtruediv__ (self , other : ArrayLike , / ) -> poly1d : ...
3777
+ def __getitem__ (self , val : int , / ) -> Any : ...
3778
+ def __setitem__ (self , key : int , val : Any , / ) -> None : ...
3779
3779
def __iter__ (self ) -> Iterator [Any ]: ...
3780
3780
def deriv (self , m : SupportsInt | SupportsIndex = ...) -> poly1d : ...
3781
3781
def integ (
@@ -3795,30 +3795,38 @@ class matrix(ndarray[_ShapeType, _DType_co]):
3795
3795
def __array_finalize__ (self , obj : object ) -> None : ...
3796
3796
3797
3797
@overload
3798
- def __getitem__ (self , key : (
3799
- SupportsIndex
3800
- | _ArrayLikeInt_co
3801
- | tuple [SupportsIndex | _ArrayLikeInt_co , ...]
3802
- )) -> Any : ...
3798
+ def __getitem__ (
3799
+ self ,
3800
+ key : (
3801
+ SupportsIndex
3802
+ | _ArrayLikeInt_co
3803
+ | tuple [SupportsIndex | _ArrayLikeInt_co , ...]
3804
+ ),
3805
+ / ,
3806
+ ) -> Any : ...
3803
3807
@overload
3804
- def __getitem__ (self , key : (
3805
- None
3806
- | slice
3807
- | ellipsis
3808
- | SupportsIndex
3809
- | _ArrayLikeInt_co
3810
- | tuple [None | slice | ellipsis | _ArrayLikeInt_co | SupportsIndex , ...]
3811
- )) -> matrix [Any , _DType_co ]: ...
3808
+ def __getitem__ (
3809
+ self ,
3810
+ key : (
3811
+ None
3812
+ | slice
3813
+ | ellipsis
3814
+ | SupportsIndex
3815
+ | _ArrayLikeInt_co
3816
+ | tuple [None | slice | ellipsis | _ArrayLikeInt_co | SupportsIndex , ...]
3817
+ ),
3818
+ / ,
3819
+ ) -> matrix [Any , _DType_co ]: ...
3812
3820
@overload
3813
- def __getitem__ (self : NDArray [void ], key : str ) -> matrix [Any , dtype [Any ]]: ...
3821
+ def __getitem__ (self : NDArray [void ], key : str , / ) -> matrix [Any , dtype [Any ]]: ...
3814
3822
@overload
3815
- def __getitem__ (self : NDArray [void ], key : list [str ]) -> matrix [_ShapeType , dtype [void ]]: ...
3823
+ def __getitem__ (self : NDArray [void ], key : list [str ], / ) -> matrix [_ShapeType , dtype [void ]]: ...
3816
3824
3817
- def __mul__ (self , other : ArrayLike ) -> matrix [Any , Any ]: ...
3818
- def __rmul__ (self , other : ArrayLike ) -> matrix [Any , Any ]: ...
3819
- def __imul__ (self , other : ArrayLike ) -> matrix [_ShapeType , _DType_co ]: ...
3820
- def __pow__ (self , other : ArrayLike ) -> matrix [Any , Any ]: ...
3821
- def __ipow__ (self , other : ArrayLike ) -> matrix [_ShapeType , _DType_co ]: ...
3825
+ def __mul__ (self , other : ArrayLike , / ) -> matrix [Any , Any ]: ...
3826
+ def __rmul__ (self , other : ArrayLike , / ) -> matrix [Any , Any ]: ...
3827
+ def __imul__ (self , other : ArrayLike , / ) -> matrix [_ShapeType , _DType_co ]: ...
3828
+ def __pow__ (self , other : ArrayLike , / ) -> matrix [Any , Any ]: ...
3829
+ def __ipow__ (self , other : ArrayLike , / ) -> matrix [_ShapeType , _DType_co ]: ...
3822
3830
3823
3831
@overload
3824
3832
def sum (self , axis : None = ..., dtype : DTypeLike = ..., out : None = ...) -> Any : ...
0 commit comments