Skip to content

Commit fd19919

Browse files
authored
API: Cleaning numpy/__init__.py and main namespace - Part 2 [NEP 52] (#24357)
[skip ci] Original NumPy Commit: 250e1479ce342d9d7ab8a592508f6ce892d4c98b
1 parent d3a6ee6 commit fd19919

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

array_api_strict/_array_object.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@
3939

4040
import numpy as np
4141

42-
import array_api_strict
43-
4442

4543
class Array:
4644
"""
@@ -458,6 +456,7 @@ def __array_namespace__(
458456
) -> types.ModuleType:
459457
if api_version is not None and not api_version.startswith("2021."):
460458
raise ValueError(f"Unrecognized array API version: {api_version!r}")
459+
import array_api_strict
461460
return array_api
462461

463462
def __bool__(self: Array, /) -> bool:

0 commit comments

Comments
 (0)