We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 286bef8 commit 4bf8a7eCopy full SHA for 4bf8a7e
src/zarr/core/dtype/npy/structured.py
@@ -162,8 +162,10 @@ def to_json(
162
[f_name, f_dtype.to_json(zarr_format=zarr_format)] # type: ignore[list-item]
163
for f_name, f_dtype in self.fields
164
]
165
- base_dict = {"name": self._zarr_v3_name}
166
- base_dict["configuration"] = {"fields": fields} # type: ignore[assignment]
+ base_dict = {
+ "name": self._zarr_v3_name,
167
+ "configuration": {"fields": fields},
168
+ }
169
return cast("DTypeSpec_V3", base_dict)
170
raise ValueError(f"zarr_format must be 2 or 3, got {zarr_format}") # pragma: no cover
171
0 commit comments