Skip to content

Commit 9d01432

Browse files
committed
docs: improve type: ignore explanations
1 parent 2cbdfc8 commit 9d01432

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/zarr/core/codec_pipeline.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,8 @@ def decode(
132132
133133
Pure compute -- no IO.
134134
"""
135+
# All codecs are verified to implement SupportsSyncCodec in __post_init__,
136+
# but the stored types (ArrayArrayCodec, etc.) don't reflect this statically.
135137
bb_out: Any = chunk_bytes
136138
for bb_codec in reversed(self._bb_codecs):
137139
bb_out = bb_codec._decode_sync(bb_out, self._ab_spec) # type: ignore[attr-defined]

0 commit comments

Comments
 (0)