Skip to content

Commit 1b4ba64

Browse files
authored
Merge pull request #327 from crusaderky/import_helpers
MAINT: don't import helpers in numpy namespace
2 parents 2b5e289 + e945af9 commit 1b4ba64

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

array_api_compat/numpy/__init__.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,6 @@
2323

2424
__import__(__package__ + ".fft")
2525

26-
from ..common._helpers import * # noqa: F403
27-
from .linalg import matrix_transpose, vecdot # noqa: F401
28-
29-
try:
30-
# Used in asarray(). Not present in older versions.
31-
from numpy import _CopyMode # noqa: F401
32-
except ImportError:
33-
pass
26+
from .linalg import matrix_transpose, vecdot # type: ignore[no-redef] # noqa: F401
3427

3528
__array_api_version__: Final = "2024.12"

0 commit comments

Comments
 (0)