Skip to content

Commit

Permalink
fix mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
brokkoli71 committed Jan 15, 2025
1 parent 7eb6988 commit c7393a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/zarr/core/array.py
Original file line number Diff line number Diff line change
Expand Up @@ -3875,9 +3875,9 @@ async def from_array(
if order is None:
order = data.order
if chunk_key_encoding is None and zarr_format == data.metadata.zarr_format:
if zarr_format == 2:
if isinstance(data.metadata, ArrayV2Metadata):
chunk_key_encoding = {"name": "v2", "separator": data.metadata.dimension_separator}
else:
elif isinstance(data.metadata, ArrayV3Metadata):
chunk_key_encoding = data.metadata.chunk_key_encoding
if dimension_names is None and data.metadata.zarr_format == 3:
dimension_names = data.metadata.dimension_names
Expand Down

0 comments on commit c7393a4

Please sign in to comment.