Skip to content

Commit 42f9051

Browse files
committed
mypy fixes
1 parent d193b7f commit 42f9051

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ repos:
3030
hooks:
3131
- id: mypy
3232
args: [--config-file, pyproject.toml]
33-
additional_dependencies: [numpy, pytest, crc32c, zfpy, 'zarr>=3.0.0rc1']
33+
additional_dependencies: [numpy, pytest, crc32c, zfpy, 'zarr>=3']

numcodecs/zarr3.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ def __init__(self, **codec_config: dict[str, JSON]) -> None:
286286

287287
def resolve_metadata(self, chunk_spec: ArraySpec) -> ArraySpec:
288288
if astype := self.codec_config.get("astype"):
289-
return replace(chunk_spec, dtype=np.dtype(astype)) # type: ignore[arg-type]
289+
return replace(chunk_spec, dtype=np.dtype(astype)) # type: ignore[call-overload]
290290
return chunk_spec
291291

292292

@@ -304,7 +304,7 @@ def __init__(self, **codec_config: JSON) -> None:
304304

305305
def resolve_metadata(self, chunk_spec: ArraySpec) -> ArraySpec:
306306
if astype := self.codec_config.get("astype"):
307-
return replace(chunk_spec, dtype=np.dtype(astype)) # type: ignore[arg-type]
307+
return replace(chunk_spec, dtype=np.dtype(astype)) # type: ignore[call-overload]
308308
return chunk_spec
309309

310310
def evolve_from_array_spec(self, array_spec: ArraySpec) -> FixedScaleOffset:

0 commit comments

Comments
 (0)