@@ -605,11 +605,12 @@ def __ge__(self: array, other: Union[int, float, array], /) -> array:
605
605
def __getitem__ (
606
606
self : array ,
607
607
key : Union [
608
- SupportsIndex ,
608
+ int ,
609
609
slice ,
610
610
ellipsis ,
611
611
None ,
612
- Tuple [Union [SupportsIndex , slice , ellipsis , None ], ...],
612
+ SupportsIndex ,
613
+ Tuple [Union [int , slice , ellipsis , None , SupportsIndex ], ...],
613
614
array ,
614
615
],
615
616
/ ,
@@ -621,7 +622,7 @@ def __getitem__(
621
622
----------
622
623
self: array
623
624
array instance.
624
- key: Union[SupportsIndex , slice, ellipsis, None, Tuple[Union[SupportsIndex , slice, ellipsis, None], ...], array]
625
+ key: Union[int , slice, ellipsis, None, SupportsIndex, Tuple[Union[int , slice, ellipsis, None, SupportsIndex ], ...], array]
625
626
index key.
626
627
627
628
@@ -1082,10 +1083,11 @@ def __rshift__(self: array, other: Union[int, array], /) -> array:
1082
1083
def __setitem__ (
1083
1084
self : array ,
1084
1085
key : Union [
1085
- SupportsIndex ,
1086
+ int ,
1086
1087
slice ,
1087
1088
ellipsis ,
1088
- Tuple [Union [SupportsIndex , slice , ellipsis ], ...],
1089
+ SupportsIndex ,
1090
+ Tuple [Union [int , slice , ellipsis , SupportsIndex ], ...],
1089
1091
array ,
1090
1092
],
1091
1093
value : Union [int , float , bool , array ],
@@ -1098,7 +1100,7 @@ def __setitem__(
1098
1100
----------
1099
1101
self: array
1100
1102
array instance.
1101
- key: Union[SupportsIndex , slice, ellipsis, Tuple[Union[SupportsIndex , slice, ellipsis], ...], array]
1103
+ key: Union[int , slice, ellipsis, SupportsIndex, Tuple[Union[int , slice, ellipsis, SupportsIndex ], ...], array]
1102
1104
index key.
1103
1105
value: Union[int, float, bool, array]
1104
1106
value(s) to set. Must be compatible with ``self[key]`` (see :ref:`broadcasting`).
0 commit comments