File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed
Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 99from ._info import __array_namespace_info__ # noqa: F401
1010
1111# See the comment in the numpy __init__.py
12- __import__ (__package__ + '.linalg' )
13- __import__ (__package__ + '.fft' )
12+ __import__ (__spec__ . parent + '.linalg' )
13+ __import__ (__spec__ . parent + '.fft' )
1414
1515__array_api_version__ : Final = '2025.12'
1616
Original file line number Diff line number Diff line change 1313del Final
1414
1515# See the comment in the numpy __init__.py
16- __import__ (__package__ + '.linalg' )
17- __import__ (__package__ + '.fft' )
16+ __import__ (__spec__ . parent + '.linalg' )
17+ __import__ (__spec__ . parent + '.fft' )
1818
1919__all__ = sorted (
2020 set (__all__ )
Original file line number Diff line number Diff line change 2020#
2121# It doesn't overwrite np.linalg from above. The import is generated
2222# dynamically so that the library can be vendored.
23- __import__ (__package__ + ".linalg" )
23+ __import__ (__spec__ . parent + ".linalg" )
2424
25- __import__ (__package__ + ".fft" )
25+ __import__ (__spec__ . parent + ".fft" )
2626
2727from .linalg import matrix_transpose , vecdot # type: ignore[no-redef] # noqa: F401
2828
Original file line number Diff line number Diff line change 1010from ._info import __array_namespace_info__ # noqa: F401
1111
1212# See the comment in the numpy __init__.py
13- __import__ (__package__ + '.linalg' )
14- __import__ (__package__ + '.fft' )
13+ __import__ (__spec__ . parent + '.linalg' )
14+ __import__ (__spec__ . parent + '.fft' )
1515
1616__array_api_version__ : Final = '2025.12'
1717
You can’t perform that action at this time.
0 commit comments