Skip to content

Commit ab88a2f

Browse files
authored
chore: update typing for internal changes in Zarr-Python 3.2.0 (#985)
1 parent 0630d65 commit ab88a2f

2 files changed

Lines changed: 2 additions & 10 deletions

File tree

virtualizarr/manifests/array.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,8 @@
1414
from virtualizarr.manifests.manifest import ChunkManifest
1515
from virtualizarr.manifests.utils import ChunkKeySeparator
1616

17-
# Type-check against the min-deps name (RegularChunkGrid) while keeping a
18-
# runtime try/except so both zarr-python <=3.1.6 and >3.1.6 work. Version
19-
# sniffing is unreliable under hatch-vcs when installed from a git source
20-
# without fetched tags.
2117
if TYPE_CHECKING:
22-
from zarr.core.metadata.v3 import RegularChunkGrid as RegularChunkGridMetadata
18+
from zarr.core.metadata.v3 import RegularChunkGridMetadata
2319
else:
2420
try:
2521
from zarr.core.metadata.v3 import RegularChunkGridMetadata # zarr-python>3.1.6

virtualizarr/parsers/zarr.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,8 @@
2828
from virtualizarr.manifests.utils import ChunkKeySeparator
2929
from virtualizarr.utils import determine_chunk_grid_shape
3030

31-
# Type-check against the min-deps name (RegularChunkGrid) while keeping a
32-
# runtime try/except so both zarr-python <=3.1.6 and >3.1.6 work. Version
33-
# sniffing is unreliable under hatch-vcs when installed from a git source
34-
# without fetched tags.
3531
if TYPE_CHECKING:
36-
from zarr.core.metadata.v3 import RegularChunkGrid as RegularChunkGridMetadata
32+
from zarr.core.metadata.v3 import RegularChunkGridMetadata
3733
else:
3834
try:
3935
from zarr.core.metadata.v3 import RegularChunkGridMetadata # zarr-python>3.1.6

0 commit comments

Comments
 (0)