File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 88from types import ModuleType
99from typing import TYPE_CHECKING , Any , cast
1010
11+ from ._lib ._compat import (
12+ array_namespace ,
13+ is_dask_namespace ,
14+ is_jax_namespace ,
15+ )
16+ from ._lib ._typing import Array , DType
17+
1118if TYPE_CHECKING :
1219 # https://github.com/scikit-learn/scikit-learn/pull/27910#issuecomment-2568023972
1320 from typing import TypeAlias
1421
1522 import numpy as np
1623 import numpy .typing as npt
1724
18- NumPyObject : TypeAlias = npt .NDArray [Any ] | np .generic # type: ignore[no-any-explicit]
19-
20- from ._lib ._compat import (
21- array_namespace ,
22- is_dask_namespace ,
23- is_jax_namespace ,
24- )
25- from ._lib ._typing import Array , DType
25+ NumPyObject : TypeAlias = npt .NDArray [DType ] | np .generic # type: ignore[no-any-explicit]
2626
2727
2828def apply_numpy_func ( # type: ignore[no-any-explicit]
You can’t perform that action at this time.
0 commit comments