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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy