Skip to content

Commit 4bf8a7e

Browse files
Appending to dictionary following its definition (#3159)
1 parent 286bef8 commit 4bf8a7e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/zarr/core/dtype/npy/structured.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,10 @@ def to_json(
162162
[f_name, f_dtype.to_json(zarr_format=zarr_format)] # type: ignore[list-item]
163163
for f_name, f_dtype in self.fields
164164
]
165-
base_dict = {"name": self._zarr_v3_name}
166-
base_dict["configuration"] = {"fields": fields} # type: ignore[assignment]
165+
base_dict = {
166+
"name": self._zarr_v3_name,
167+
"configuration": {"fields": fields},
168+
}
167169
return cast("DTypeSpec_V3", base_dict)
168170
raise ValueError(f"zarr_format must be 2 or 3, got {zarr_format}") # pragma: no cover
169171

0 commit comments

Comments
 (0)