Skip to content

Commit 3984679

Browse files
authored
Update docstrings for counting functions (#2365)
The PR updates docstrings for counting functions to have a blank line prior `Default` value.
1 parent edf2dbf commit 3984679

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

dpnp/dpnp_iface_counting.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,16 +58,19 @@ def count_nonzero(a, axis=None, *, keepdims=False, out=None):
5858
Axis or tuple of axes along which to count non-zeros.
5959
Default value means that non-zeros will be counted along a flattened
6060
version of `a`.
61+
6162
Default: ``None``.
62-
keepdims : bool, optional
63+
keepdims : {None, bool}, optional
6364
If this is set to ``True``, the axes that are counted are left in the
6465
result as dimensions with size one. With this option, the result will
6566
broadcast correctly against the input array.
67+
6668
Default: ``False``.
6769
out : {None, dpnp.ndarray, usm_ndarray}, optional
6870
The array into which the result is written. The data type of `out` must
6971
match the expected shape and the expected data type of the result.
7072
If ``None`` then a new array is returned.
73+
7174
Default: ``None``.
7275
7376
Returns

0 commit comments

Comments
 (0)