Skip to content

Commit 973d835

Browse files
authored
Fixes error when running with Zarr-Python 3.1.0 (#868)
* Fix good first issue #867 * Check formatting
1 parent 5e59cde commit 973d835

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

virtualizarr/parsers/zarr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import zarr
1010
from obspec_utils.registry import ObjectStoreRegistry
1111
from zarr.api.asynchronous import open_group as open_group_async
12-
from zarr.core.dtype import parse_dtype
1312
from zarr.core.group import GroupMetadata
1413
from zarr.core.metadata import ArrayV3Metadata
1514
from zarr.storage import ObjectStore
@@ -183,6 +182,7 @@ def get_metadata(self, zarr_array: ZarrArrayType) -> ArrayV3Metadata:
183182
from zarr.core.metadata import ArrayV2Metadata
184183

185184
try:
185+
from zarr.core.dtype import parse_dtype
186186
from zarr.metadata.migrate_v3 import _convert_array_metadata
187187
except (ImportError, AttributeError):
188188
raise ImportError(

0 commit comments

Comments
 (0)