Skip to content

Commit 14c8fbd

Browse files
committed
feat!: allow zero-dimensional arrays
1 parent 991295b commit 14c8fbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/array_api_stubs/_draft/searching_functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def count_nonzero(
6767
Parameters
6868
----------
6969
x: array
70-
input array. Must have a positive rank. If ``x`` is zero-dimensional, the function must raise an exception.
70+
input array.
7171
axis: Optional[Union[int, Tuple[int, ...]]]
7272
axis or axes along which to count non-zero values. By default, the number of non-zero values must be computed over the entire array. If a tuple of integers, the number of non-zero values must be computed over multiple axes. Default: ``None``.
7373
keepdims: bool

0 commit comments

Comments
 (0)