File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 1+ Fix the type of ``ArrayV2Metadata.codec `` to constrain it to ``numcodecs.abc.Codec | None ``.
2+ Previously the type was more permissive, allowing objects that can be parsed into Codecs (e.g., the codec name).
3+ The constructor of ``ArrayV2Metadata `` still allows the permissive input when creating new objects.
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ class ArrayV2Metadata(Metadata):
6868 order : MemoryOrder = "C"
6969 filters : tuple [numcodecs .abc .Codec , ...] | None = None
7070 dimension_separator : Literal ["." , "/" ] = "."
71- compressor : CompressorLikev2
71+ compressor : numcodecs . abc . Codec | None
7272 attributes : dict [str , JSON ] = field (default_factory = dict )
7373 zarr_format : Literal [2 ] = field (init = False , default = 2 )
7474
You can’t perform that action at this time.
0 commit comments