Skip to content

Commit fa71e9e

Browse files
committed
Fix version check
1 parent 4c80f6d commit fa71e9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

array_api_strict/_array_object.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@ def __dlpack__(
586586
if copy is not _default:
587587
raise ValueError("The copy argument to __dlpack__ requires at least version 2023.12 of the array API")
588588

589-
if np.__version__ < '2.1':
589+
if np.__version__[0] < '2.1':
590590
if max_version not in [_default, None]:
591591
raise NotImplementedError("The max_version argument to __dlpack__ is not yet implemented")
592592
if dl_device not in [_default, None]:

0 commit comments

Comments
 (0)