Skip to content

Commit 360045a

Browse files
Apply ruff/Pytlint rule PLR6104
PLR6104 Use `|=` to perform an augmented assignment directly
1 parent e3827f6 commit 360045a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/zarr/core/group.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3447,7 +3447,7 @@ def _parse_hierarchy_dict(
34473447
# but not if an empty dict was provided, because any empty hierarchy has no nodes
34483448
if len(data_normed_keys) > 0 and "" not in data_normed_keys:
34493449
z_format = next(iter(data_normed_keys.values())).zarr_format
3450-
data_normed_keys = data_normed_keys | {"": ImplicitGroupMarker(zarr_format=z_format)}
3450+
data_normed_keys |= {"": ImplicitGroupMarker(zarr_format=z_format)}
34513451

34523452
out: dict[str, GroupMetadata | ArrayV2Metadata | ArrayV3Metadata] = {**data_normed_keys}
34533453

0 commit comments

Comments
 (0)