Skip to content

Commit 1078723

Browse files
DOC: Clarify docstring scalar inputs to array (numpy#19545)
1 parent d61fdc7 commit 1078723

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

numpy/core/_add_newdocs.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -796,6 +796,8 @@
796796
object : array_like
797797
An array, any object exposing the array interface, an object whose
798798
__array__ method returns an array, or any (nested) sequence.
799+
If object is a scalar, a 0-dimensional array containing object is
800+
returned.
799801
dtype : data-type, optional
800802
The desired data-type for the array. If not given, then the type will
801803
be determined as the minimum type required to hold the objects in the

0 commit comments

Comments
 (0)