Skip to content

Commit 171e5a5

Browse files
committed
versionify version
1 parent 20d089f commit 171e5a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

numcodecs/zarr3.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,12 @@ def from_zarr_dtype(dtype: Any) -> np.dtype:
6060
"""
6161
Get a numpy data type from an array spec, depending on the zarr version.
6262
"""
63-
if version('zarr') >= Version("3.1.0"):
63+
if Version(version('zarr')) >= Version("3.1.0"):
6464
return dtype.to_native_dtype()
6565
return dtype
6666

6767
def to_zarr_dtype(dtype: np.dtype) -> Any:
68-
if version('zarr') >= Version("3.1.0"):
68+
if Version(version('zarr')) >= Version("3.1.0"):
6969
from zarr.dtype import parse_data_type
7070
return parse_data_type(dtype)
7171
return dtype

0 commit comments

Comments
 (0)