@@ -1063,7 +1063,7 @@ class dtype(Generic[_DTypeScalar_co]):
1063
1063
@overload
1064
1064
def __getitem__ (self : dtype [void ], key : List [str ]) -> dtype [void ]: ...
1065
1065
@overload
1066
- def __getitem__ (self : dtype [void ], key : str | int ) -> dtype [Any ]: ...
1066
+ def __getitem__ (self : dtype [void ], key : Union [ str , int ] ) -> dtype [Any ]: ...
1067
1067
1068
1068
# NOTE: In the future 1-based multiplications will also yield `void` dtypes
1069
1069
@overload
@@ -2566,7 +2566,7 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeType, _DType_co]):
2566
2566
2567
2567
# `np.generic` does not support inplace operations
2568
2568
@overload # type: ignore[misc]
2569
- def __iadd__ (self : _ArrayND [Any ], other : _NestedSequence [str | bytes ]) -> NoReturn : ...
2569
+ def __iadd__ (self : _ArrayND [Any ], other : _NestedSequence [Union [ str , bytes ] ]) -> NoReturn : ...
2570
2570
@overload
2571
2571
def __iadd__ (self : _ArrayND [bool_ ], other : _ArrayLikeBool_co ) -> _ArrayND [bool_ ]: ...
2572
2572
@overload
@@ -2587,7 +2587,7 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeType, _DType_co]):
2587
2587
def __iadd__ (self : _ArrayND [_ScalarType ], other : _RecursiveSequence ) -> _ArrayND [_ScalarType ]: ...
2588
2588
2589
2589
@overload # type: ignore[misc]
2590
- def __isub__ (self : _ArrayND [Any ], other : _NestedSequence [str | bytes ]) -> NoReturn : ...
2590
+ def __isub__ (self : _ArrayND [Any ], other : _NestedSequence [Union [ str , bytes ] ]) -> NoReturn : ...
2591
2591
@overload
2592
2592
def __isub__ (self : _ArrayND [unsignedinteger [_NBit1 ]], other : _ArrayLikeUInt_co ) -> _ArrayND [unsignedinteger [_NBit1 ]]: ...
2593
2593
@overload
@@ -2606,7 +2606,7 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeType, _DType_co]):
2606
2606
def __isub__ (self : _ArrayND [_ScalarType ], other : _RecursiveSequence ) -> _ArrayND [_ScalarType ]: ...
2607
2607
2608
2608
@overload # type: ignore[misc]
2609
- def __imul__ (self : _ArrayND [Any ], other : _NestedSequence [str | bytes ]) -> NoReturn : ...
2609
+ def __imul__ (self : _ArrayND [Any ], other : _NestedSequence [Union [ str , bytes ] ]) -> NoReturn : ...
2610
2610
@overload
2611
2611
def __imul__ (self : _ArrayND [bool_ ], other : _ArrayLikeBool_co ) -> _ArrayND [bool_ ]: ...
2612
2612
@overload
@@ -2625,7 +2625,7 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeType, _DType_co]):
2625
2625
def __imul__ (self : _ArrayND [_ScalarType ], other : _RecursiveSequence ) -> _ArrayND [_ScalarType ]: ...
2626
2626
2627
2627
@overload # type: ignore[misc]
2628
- def __itruediv__ (self : _ArrayND [Any ], other : _NestedSequence [str | bytes ]) -> NoReturn : ...
2628
+ def __itruediv__ (self : _ArrayND [Any ], other : _NestedSequence [Union [ str , bytes ] ]) -> NoReturn : ...
2629
2629
@overload
2630
2630
def __itruediv__ (self : _ArrayND [floating [_NBit1 ]], other : _ArrayLikeFloat_co ) -> _ArrayND [floating [_NBit1 ]]: ...
2631
2631
@overload
@@ -2640,7 +2640,7 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeType, _DType_co]):
2640
2640
def __itruediv__ (self : _ArrayND [_ScalarType ], other : _RecursiveSequence ) -> _ArrayND [_ScalarType ]: ...
2641
8000
2641
2642
2642
@overload # type: ignore[misc]
2643
- def __ifloordiv__ (self : _ArrayND [Any ], other : _NestedSequence [str | bytes ]) -> NoReturn : ...
2643
+ def __ifloordiv__ (self : _ArrayND [Any ], other : _NestedSequence [Union [ str , bytes ] ]) -> NoReturn : ...
2644
2644
@overload
2645
2645
def __ifloordiv__ (self : _ArrayND [unsignedinteger [_NBit1 ]], other : _ArrayLikeUInt_co ) -> _ArrayND [unsignedinteger [_NBit1 ]]: ...
2646
2646
@overload
@@ -2659,7 +2659,7 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeType, _DType_co]):
2659
2659
def __ifloordiv__ (self : _ArrayND [_ScalarType ], other : _RecursiveSequence ) -> _ArrayND [_ScalarType ]: ...
2660
2660
2661
2661
@overload # type: ignore[misc]
2662
- def __ipow__ (self : _ArrayND [Any ], other : _NestedSequence [str | bytes ]) -> NoReturn : ...
2662
+ def __ipow__ (self : _ArrayND [Any ], other : _NestedSequence [Union [ str , bytes ] ]) -> NoReturn : ...
2663
2663
@overload
2664
2664
def __ipow__ (self : _ArrayND [unsignedinteger [_NBit1 ]], other : _ArrayLikeUInt_co ) -> _ArrayND [unsignedinteger [_NBit1 ]]: ...
2665
2665
@overload
@@ -2674,7 +2674,7 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeType, _DType_co]):
2674
2674
def __ipow__ (self : _ArrayND [_ScalarType ], other : _RecursiveSequence ) -> _ArrayND [_ScalarType ]: ...
2675
2675
2676
2676
@overload # type: ignore[misc]
2677
- def __imod__ (self : _ArrayND [Any ], other : _NestedSequence [str | bytes ]) -> NoReturn : ...
2677
+ def __imod__ (self : _ArrayND [Any ], other : _NestedSequence [Union [ str , bytes ] ]) -> NoReturn : ...
2678
2678
@overload
2679
2679
def __imod__ (self : _ArrayND [unsignedinteger [_NBit1 ]], other : _ArrayLikeUInt_co ) -> _ArrayND [unsignedinteger [_NBit1 ]]: ...
2680
2680
@overload
@@ -2689,7 +2689,7 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeType, _DType_co]):
2689
2689
def __imod__ (self : _ArrayND [_ScalarType ], other : _RecursiveSequence ) -> _ArrayND [_ScalarType ]: ...
2690
2690
2691
2691
@overload # type: ignore[misc]
2692
- def __ilshift__ (self : _ArrayND [Any ], other : _NestedSequence [str | bytes ]) -> NoReturn : ...
2692
+ def __ilshift__ (self : _ArrayND [Any ], other : _NestedSequence [Union [ str , bytes ] ]) -> NoReturn : ...
2693
2693
@overload
2694
2694
def __ilshift__ (self : _ArrayND [unsignedinteger [_NBit1 ]], other : _ArrayLikeUInt_co ) -> _ArrayND [unsignedinteger [_NBit1 ]]: ...
2695
2695
@overload
@@ -2700,7 +2700,7 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeType, _DType_co]):
2700
2700
def __ilshift__ (self : _ArrayND [_ScalarType ], other : _RecursiveSequence ) -> _ArrayND [_ScalarType ]: ...
2701
2701
2702
2702
@overload # type: ignore[misc]
2703
- def __irshift__ (self : _ArrayND [Any ], other : _NestedSequence [str | bytes ]) -> NoReturn : ...
2703
+ def __irshift__ (self : _ArrayND [Any ], other : _NestedSequence [Union [ str , bytes ] ]) -> NoReturn : ...
2704
2704
@overload
2705
2705
def __irshift__ (self : _ArrayND [unsignedinteger [_NBit1 ]], other : _ArrayLikeUInt_co ) -> _ArrayND [unsignedinteger [_NBit1 ]]: ...
2706
2706
@overload
@@ -2711,7 +2711,7 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeType, _DType_co]):
2711
2711
def __irshift__ (self : _ArrayND [_ScalarType ], other : _RecursiveSequence ) -> _ArrayND [_ScalarType ]: ...
2712
2712
2713
2713
@overload # type: ignore[misc]
2714
- def __iand__ (self : _ArrayND [Any ], other : _NestedSequence [str | bytes ]) -> NoReturn : ...
2714
+ def __iand__ (self : _ArrayND [Any ], other : _NestedSequence [Union [ str , bytes ] ]) -> NoReturn : ...
2715
2715
@overload
2716
2716
def __iand__ (self : _ArrayND [bool_ ], other : _ArrayLikeBool_co ) -> _ArrayND [bool_ ]: ...
2717
2717
@overload
@@ -2724,7 +2724,7 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeType, _DType_co]):
2724
2724
def __iand__ (self : _ArrayND [_ScalarType ], other : _RecursiveSequence ) -> _ArrayND [_ScalarType ]: ...
2725
2725
2726
2726
@overload # type: ignore[misc]
2727
- def __ixor__ (self : _ArrayND [Any ], other : _NestedSequence [str | bytes ]) -> NoReturn : ...
2727
+ def __ixor__ (self : _ArrayND [Any ], other : _NestedSequence [Union [ str , bytes ] ]) -> NoReturn : ...
2728
2728
@overload
2729
2729
def __ixor__ (self : _ArrayND [bool_ ], other : _ArrayLikeBool_co ) -> _ArrayND [bool_ ]: ...
2730
2730
@overload
@@ -2737,7 +2737,7 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeType, _DType_co]):
2737
2737
def __ixor__ (self : _ArrayND [_ScalarType ], other : _RecursiveSequence ) -> _ArrayND [_ScalarType ]: ...
2738
2738
2739
2739
@overload # type: ignore[misc]
2740
- def __ior__ (self : _ArrayND [Any ], other : _NestedSequence [str | bytes ]) -> NoReturn : ...
2740
+ def __ior__ (self : _ArrayND [Any ], other : _NestedSequence [Union [ str , bytes ] ]) -> NoReturn : ...
2741
2741
@overload
2742
2742
def __ior__ (self : _ArrayND [bool_ ], other : _ArrayLikeBool_co ) -> _ArrayND [bool_ ]: ...
2743
2743
@overload
0 commit comments