Skip to content

Commit

Permalink
Apply ruff/flake8-simplify rule SIM118
Browse files Browse the repository at this point in the history
SIM118 Use `key in dict` instead of `key in dict.keys()`
  • Loading branch information
DimitriPapadopoulos committed Nov 4, 2024
1 parent 4c3081c commit 4c75200
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zarr/core/group.py
Original file line number Diff line number Diff line change
Expand Up @@ -1230,7 +1230,7 @@ def _members_consolidated(

# we kind of just want the top-level keys.
if consolidated_metadata is not None:
for key in consolidated_metadata.metadata.keys():
for key in consolidated_metadata.metadata:
obj = self._getitem_consolidated(
self.store_path, key, prefix=self.name
) # Metadata -> Group/Array
Expand Down

0 comments on commit 4c75200

Please sign in to comment.