Skip to content

Commit 783fa0d

Browse files
Bas van BeekBvB93
authored andcommitted
DOC: Update the signatures of nested_iters and nditer.remove_axis
1 parent 35dc3e2 commit 783fa0d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

numpy/core/_add_newdocs.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@
478478

479479
add_newdoc('numpy.core', 'nditer', ('remove_axis',
480480
"""
481-
remove_axis(i)
481+
remove_axis(i, /)
482482
483483
Removes axis `i` from the iterator. Requires that the flag "multi_index"
484484
be enabled.
@@ -504,6 +504,8 @@
504504

505505
add_newdoc('numpy.core', 'nested_iters',
506506
"""
507+
nested_iters(op, axes, flags=None, op_flags=None, op_dtypes=None, order="K", casting="safe", buffersize=0)
508+
507509
Create nditers for use in nested loops
508510
509511
Create a tuple of `nditer` objects which iterate in nested loops over
@@ -796,7 +798,7 @@
796798
object : array_like
797799
An array, any object exposing the array interface, an object whose
798800
__array__ method returns an array, or any (nested) sequence.
799-
If object is a scalar, a 0-dimensional array containing object is
801+
If object is a scalar, a 0-dimensional array containing object is
800802
returned.
801803
dtype : data-type, optional
802804
The desired data-type for the array. If not given, then the type will

0 commit comments

Comments
 (0)