File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/array_api_stubs/_draft Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -627,7 +627,7 @@ def __getitem__(
627
627
628
628
629
629
.. note::
630
- ``key`` can only be an array if it is valid for boolean array indexing, or supports ``__index__()``.
630
+ ``key`` can only be an array if it is valid for boolean array indexing, or when it supports ``__index__()`` as a 0-dimensional integer array .
631
631
632
632
Returns
633
633
-------
@@ -1107,7 +1107,7 @@ def __setitem__(
1107
1107
1108
1108
1109
1109
.. note::
1110
- ``key`` can only be an array if it is valid for boolean array indexing, or supports ``__index__()``.
1110
+ ``key`` can only be an array if it is valid for boolean array indexing, or when it supports ``__index__()`` as a 0-dimensional integer array .
1111
1111
1112
1112
.. note::
1113
1113
You can’t perform that action at this time.
0 commit comments