Skip to content

Commit

Permalink
Apply ruff/flake8-simplify rule SIM910
Browse files Browse the repository at this point in the history
SIM910 Use `get(...)` instead of `get(..., None)`
  • Loading branch information
DimitriPapadopoulos committed Jan 25, 2025
1 parent 14f407f commit 6958348
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ome_zarr/format.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def _get_metadata_version(self, metadata: dict) -> Optional[str]:
dataset = multiscales[0]
return dataset.get("version", None)
for name in ["plate", "well", "image-label"]:
obj = metadata.get(name, None)
obj = metadata.get(name)
if obj:
return obj.get("version", None)
return None
Expand Down

0 comments on commit 6958348

Please sign in to comment.