Skip to content

Commit e518a56

Browse files
committed
Final zarr3 typing fixes
1 parent 12c2de8 commit e518a56

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
@@ -281,7 +281,7 @@ def __init__(self, **codec_config: JSON) -> None:
281281

282282
def resolve_metadata(self, chunk_spec: ArraySpec) -> ArraySpec:
283283
if astype := self.codec_config.get("astype"):
284-
return replace(chunk_spec, dtype=np.dtype(astype))
284+
return replace(chunk_spec, dtype=np.dtype(astype)) # type: ignore[arg-type]
285285
return chunk_spec
286286

287287
def evolve_from_array_spec(self, array_spec: ArraySpec) -> FixedScaleOffset:
@@ -330,7 +330,7 @@ def __init__(self, **codec_config: JSON) -> None:
330330
super().__init__(**codec_config)
331331

332332
def resolve_metadata(self, chunk_spec: ArraySpec) -> ArraySpec:
333-
return replace(chunk_spec, dtype=np.dtype(self.codec_config["encode_dtype"]))
333+
return replace(chunk_spec, dtype=np.dtype(self.codec_config["encode_dtype"])) # type: ignore[arg-type]
334334

335335
def evolve_from_array_spec(self, array_spec: ArraySpec) -> AsType:
336336
decode_dtype = self.codec_config.get("decode_dtype")

0 commit comments

Comments
 (0)