We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bfb0dfc commit ed4f37bCopy full SHA for ed4f37b
1 file changed
src/blosc2/proxy.py
@@ -8,6 +8,12 @@
8
from abc import ABC, abstractmethod
9
from collections.abc import Sequence
10
11
+try:
12
+ from numpy.typing import DTypeLike
13
+except (ImportError, AttributeError):
14
+ # fallback to internal module (use with caution)
15
+ from numpy._typing import DTypeLike
16
+
17
import numpy as np
18
19
import blosc2
@@ -569,7 +575,7 @@ def __getitem__(self, item: slice | list[slice]) -> np.ndarray:
569
575
return nparr[self.field]
570
576
571
577
572
-def _convert_dtype(dt: str | np.typing.DTypeLike):
578
+def _convert_dtype(dt: str | DTypeLike):
573
579
"""
574
580
Attempts to convert to blosc2.dtype (i.e. numpy dtype)
581
0 commit comments