Skip to content

Commit f32b223

Browse files
Illviljancharris
authored andcommitted
TYP: add None to __getitem__ in numpy.array_api (numpy#25022)
Closes numpygh-24982
1 parent 4962e22 commit f32b223

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

numpy/array_api/_array_object.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,11 @@ def __ge__(self: Array, other: Union[int, float, Array], /) -> Array:
543543
def __getitem__(
544544
self: Array,
545545
key: Union[
546-
int, slice, ellipsis, Tuple[Union[int, slice, ellipsis], ...], Array
546+
int,
547+
slice,
548+
ellipsis,
549+
Tuple[Union[int, slice, ellipsis, None], ...],
550+
Array,
547551
],
548552
/,
549553
) -> Array:

0 commit comments

Comments
 (0)