Skip to content

Commit 35fbef9

Browse files
authored
TYP: add None to __getitem__ in numpy.array_api (#25022)
Closes gh-24982 Original NumPy Commit: 3c853e149d5021a377dbe985ecd06b201ff3de46
1 parent 89ecc90 commit 35fbef9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

array_api_strict/_array_object.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,11 @@ def __ge__(self: Array, other: Union[int, float, Array], /) -> Array:
542542
def __getitem__(
543543
self: Array,
544544
key: Union[
545-
int, slice, ellipsis, Tuple[Union[int, slice, ellipsis], ...], Array
545+
int,
546+
slice,
547+
ellipsis,
548+
Tuple[Union[int, slice, ellipsis, None], ...],
549+
Array,
546550
],
547551
/,
548552
) -> Array:

0 commit comments

Comments
 (0)