Skip to content

Commit a4bb9a9

Browse files
authored
docs: update language to match cumulative_sum
1 parent 9f30307 commit a4bb9a9

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/array_api_stubs/_draft/indexing_functions.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def take(x: array, indices: array, /, *, axis: Optional[int] = None) -> array:
1313
Parameters
1414
----------
1515
x: array
16-
input array.
16+
input array. Should have one or more dimensions (axes).
1717
indices: array
1818
array indices. The array must be one-dimensional and have an integer data type.
1919
@@ -33,15 +33,12 @@ def take(x: array, indices: array, /, *, axis: Optional[int] = None) -> array:
3333
Notes
3434
-----
3535
36-
Behavior for 0-dimensional arrays is unspecified.
36+
- When ``x`` is a zero-dimensional array, behavior is unspecified and thus implementation-defined.
3737
3838
.. versionadded:: 2022.12
3939
4040
.. versionchanged:: 2023.12
4141
Out-of-bounds behavior is explicitly left unspecified.
42-
43-
.. versionchanged:: 2024.12
44-
Behavior for 0-dimensional arrays is explicitly left unspecified.
4542
"""
4643

4744

0 commit comments

Comments
 (0)