diff --git a/virtualizarr/writers/icechunk.py b/virtualizarr/writers/icechunk.py index e1b5dbfb..76582e48 100644 --- a/virtualizarr/writers/icechunk.py +++ b/virtualizarr/writers/icechunk.py @@ -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 = { @@ -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) diff --git a/virtualizarr/zarr.py b/virtualizarr/zarr.py index a222a788..966c76b1 100644 --- a/virtualizarr/zarr.py +++ b/virtualizarr/zarr.py @@ -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")