Skip to content

Commit 517c190

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent cf2f8bf commit 517c190

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

flox/xrutils.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,9 @@ def module_available(module: str, minversion: Optional[str] = None) -> bool:
4848

4949

5050
if module_available("numpy", minversion="2.0.0"):
51-
from numpy.lib.array_utils import ( # type: ignore[import-not-found]
52-
normalize_axis_tuple,
53-
)
51+
pass
5452
else:
55-
from numpy.core.numeric import normalize_axis_tuple # type: ignore[attr-defined]
53+
pass # type: ignore[attr-defined]
5654

5755

5856
def asarray(data, xp=np):

0 commit comments

Comments
 (0)