@@ -605,11 +605,12 @@ def __ge__(self: array, other: Union[int, float, array], /) -> array:
605605 def __getitem__ (
606606 self : array ,
607607 key : Union [
608- SupportsIndex ,
608+ int ,
609609 slice ,
610610 ellipsis ,
611611 None ,
612- Tuple [Union [SupportsIndex , slice , ellipsis , None ], ...],
612+ SupportsIndex ,
613+ Tuple [Union [int , slice , ellipsis , None , SupportsIndex ], ...],
613614 array ,
614615 ],
615616 / ,
@@ -621,7 +622,7 @@ def __getitem__(
621622 ----------
622623 self: array
623624 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]
625626 index key.
626627
627628
@@ -1082,10 +1083,11 @@ def __rshift__(self: array, other: Union[int, array], /) -> array:
10821083 def __setitem__ (
10831084 self : array ,
10841085 key : Union [
1085- SupportsIndex ,
1086+ int ,
10861087 slice ,
10871088 ellipsis ,
1088- Tuple [Union [SupportsIndex , slice , ellipsis ], ...],
1089+ SupportsIndex ,
1090+ Tuple [Union [int , slice , ellipsis , SupportsIndex ], ...],
10891091 array ,
10901092 ],
10911093 value : Union [int , float , bool , array ],
@@ -1098,7 +1100,7 @@ def __setitem__(
10981100 ----------
10991101 self: array
11001102 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]
11021104 index key.
11031105 value: Union[int, float, bool, array]
11041106 value(s) to set. Must be compatible with ``self[key]`` (see :ref:`broadcasting`).
0 commit comments