Skip to content

Commit 8b0852b

Browse files
authored
fix: address typo in return type for nonzero
PR-URL: #904
1 parent 0498721 commit 8b0852b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/array_api_stubs/_2021_12/searching_functions.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def nonzero(x: array, /) -> Tuple[array, ...]:
5757
5858
Returns
5959
-------
60-
out: Typle[array, ...]
60+
out: Tuple[array, ...]
6161
a tuple of ``k`` arrays, one for each dimension of ``x`` and each of size ``n`` (where ``n`` is the total number of non-zero elements), containing the indices of the non-zero elements in that dimension. The indices must be returned in row-major, C-style order. The returned array must have the default array index data type.
6262
"""
6363

src/array_api_stubs/_2022_12/searching_functions.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def nonzero(x: array, /) -> Tuple[array, ...]:
7373
7474
Returns
7575
-------
76-
out: Typle[array, ...]
76+
out: Tuple[array, ...]
7777
a tuple of ``k`` arrays, one for each dimension of ``x`` and each of size ``n`` (where ``n`` is the total number of non-zero elements), containing the indices of the non-zero elements in that dimension. The indices must be returned in row-major, C-style order. The returned array must have the default array index data type.
7878
7979
Notes

src/array_api_stubs/_2023_12/searching_functions.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def nonzero(x: array, /) -> Tuple[array, ...]:
7676
7777
Returns
7878
-------
79-
out: Typle[array, ...]
79+
out: Tuple[array, ...]
8080
a tuple of ``k`` arrays, one for each dimension of ``x`` and each of size ``n`` (where ``n`` is the total number of non-zero elements), containing the indices of the non-zero elements in that dimension. The indices must be returned in row-major, C-style order. The returned array must have the default array index data type.
8181
8282
Notes

0 commit comments

Comments
 (0)