Skip to content

Commit 1a1ff73

Browse files
committed
chore: drop unused type: ignore in test_codec_invariants
The mypy hook in CI (prek --all-files) type-checks src/ + tests/ together, so BytesBytesCodec is properly resolved when subclassed in the test — no [misc] ignore needed. Note: local pre-commit runs (no args) check only staged files in isolation, which makes zarr's classes look like Any and flags this class as needing # type: ignore[misc]. That hook is misleading; prek --all-files (what CI uses) is authoritative.
1 parent 743ea20 commit 1a1ff73

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/test_codec_invariants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def test_C1_resolve_metadata_only_mutates_shape(codec: Codec) -> None:
9090
# ---------------------------------------------------------------------------
9191

9292

93-
class _PrototypeRecordingCodec(BytesBytesCodec): # type: ignore[misc]
93+
class _PrototypeRecordingCodec(BytesBytesCodec):
9494
"""A no-op BB codec that records the prototype it was called with."""
9595

9696
is_fixed_size = True

0 commit comments

Comments
 (0)