Skip to content

Commit

Permalink
types
Browse files Browse the repository at this point in the history
  • Loading branch information
mpiannucci committed Oct 21, 2024
1 parent 14ee6f9 commit 23d98de
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions virtualizarr/writers/icechunk.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from virtualizarr.zarr import encode_dtype

if TYPE_CHECKING:
from icechunk import IcechunkStore
from icechunk import IcechunkStore # type: ignore[import-not-found]


VALID_URI_PREFIXES = {
Expand Down Expand Up @@ -155,7 +155,7 @@ def write_manifest_virtual_refs(
"c_index", # TODO is "c_index" correct? what's the convention for zarr chunk keys?
],
op_flags=[["readonly"]] * 3, # type: ignore
)
) # type: ignore
for path, offset, length in it:
index = it.multi_index
chunk_key = "/".join(str(i) for i in index)
Expand Down
4 changes: 3 additions & 1 deletion virtualizarr/zarr.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,9 @@ def _v3_codec_pipeline(self) -> Any:
```
"""
try:
from zarr.core.metadata.v3 import parse_codecs
from zarr.core.metadata.v3 import (
parse_codecs,
) # type: ignore[import-untyped]
except ImportError:
raise ImportError("zarr v3 is required to generate v3 codec pipelines")

Expand Down

0 comments on commit 23d98de

Please sign in to comment.