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):
68
68
order : MemoryOrder = "C"
69
69
filters : tuple [numcodecs .abc .Codec , ...] | None = None
70
70
dimension_separator : Literal ["." , "/" ] = "."
71
- compressor : CompressorLikev2
71
+ compressor : numcodecs . abc . Codec | None
72
72
attributes : dict [str , JSON ] = field (default_factory = dict )
73
73
zarr_format : Literal [2 ] = field (init = False , default = 2 )
74
74
You can’t perform that action at this time.
0 commit comments