Skip to content

Commit 4e66f18

Browse files
Apply ruff/Pytlint rule PLR6104
PLR6104 Use `|=` to perform an augmented assignment directly
1 parent 7d3cd64 commit 4e66f18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/zarr/core/group.py

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

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

0 commit comments

Comments
 (0)