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 8
8
from types import ModuleType
9
9
from typing import TYPE_CHECKING , Any , cast
10
10
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
+
11
18
if TYPE_CHECKING :
12
19
# https://github.com/scikit-learn/scikit-learn/pull/27910#issuecomment-2568023972
13
20
from typing import TypeAlias
14
21
15
22
import numpy as np
16
23
import numpy .typing as npt
17
24
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]
26
26
27
27
28
28
def apply_numpy_func ( # type: ignore[no-any-explicit]
You can’t perform that action at this time.
0 commit comments