We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 476f45a commit b20f8b4Copy full SHA for b20f8b4
array_api_strict/_creation_functions.py
@@ -83,7 +83,7 @@ def asarray(
83
if isinstance(obj, Array) and device is None:
84
device = obj.device
85
86
- if np.__version__[0] < '2':
+ if np.lib.NumpyVersion(np.__version__) < '2.0.0':
87
if copy is False:
88
# Note: copy=False is not yet implemented in np.asarray for
89
# NumPy 1
0 commit comments