You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/array_api_stubs/_draft/creation_functions.py
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -90,6 +90,10 @@ def asarray(
90
90
91
91
An object supporting the buffer protocol can be turned into a memoryview through ``memoryview(obj)``.
92
92
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
+
93
97
dtype: Optional[dtype]
94
98
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,
0 commit comments