You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
, but don't cast between the serialized dict and concrete class in between. I'm not sure which is preferred at this point, but naively maybe all the serialization is done at the boundary and we update V2Compressor to use the concrete class?
numcodecs.abc.Codec is an Any type unfortunately, which is why mypy missed this.
Zarr version
v3
Numcodecs version
na
Python Version
na
Operating System
na
Installation
na
Description
We get some wires crossed between the
ArrayV2Metadata.compressor
andV2Compressor.compressor
.ArrayV2Metadata.compressor
has a type ofnumcodecs.abc.Codec | None
V2Compressor.compressor
has a typeofdict[str, JSON] | None
.We use it
zarr-python/src/zarr/core/array.py
Line 95 in 4cbb17e
numcodecs.abc.Codec
is anAny
type unfortunately, which is why mypy missed this.Steps to reproduce
that raises with
Additional output
No response
The text was updated successfully, but these errors were encountered: