Skip to content

Commit c1cdabf

Browse files
committed
DOC: clarify that nested asarray is unspecified
1 parent 772fb46 commit c1cdabf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/array_api_stubs/_draft/creation_functions.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,10 @@ def asarray(
9090
9191
An object supporting the buffer protocol can be turned into a memoryview through ``memoryview(obj)``.
9292
93+
.. note::
94+
If ``obj`` is a sequence with some elements being arrays, the behavior is unspecified and thus implementation-defined. Conforming
95+
implentations may perform the conversion or raise an error.
96+
9397
dtype: Optional[dtype]
9498
output array data type. If ``dtype`` is ``None``, the output array data type must be inferred from the data type(s) in ``obj``. If all input values are Python scalars, then, in order of precedence,
9599

0 commit comments

Comments
 (0)