Skip to content

Commit 40cc7af

Browse files
authored
Apply suggestions from code review
1 parent e5217ce commit 40cc7af

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/zarr/core/array.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ async def get_array_metadata(
145145
(store_path / ZATTRS_JSON).get(),
146146
)
147147
if zarr_json_bytes is not None and zarray_bytes is not None:
148-
# wwarn and favor v3
148+
# warn and favor v3
149149
msg = f"Both zarr.json (zarr v3) and .zarray (zarr v2) metadata objects exist at {store_path}."
150150
warnings.warn(msg, stacklevel=1)
151151
if zarr_json_bytes is None and zarray_bytes is None:

src/zarr/core/group.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ async def open(
492492
(store_path / str(consolidated_key)).get(),
493493
)
494494
if zarr_json_bytes is not None and zgroup_bytes is not None:
495-
# we could warn and favor v3
495+
# warn and favor v3
496496
msg = f"Both zarr.json (zarr v3) and .zgroup (zarr v2) metadata objects exist at {store_path}."
497497
warnings.warn(msg, stacklevel=1)
498498
if zarr_json_bytes is None and zgroup_bytes is None:

tests/test_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def test_create(memory_store: Store) -> None:
5656
@pytest.mark.parametrize("store", ["memory"], indirect=True)
5757
def test_read(store: Store) -> None:
5858
"""
59-
Test that the polymorphic read function works.
59+
Test that the polymorphic read function can return an Array or a Group, depending on the path argument.
6060
"""
6161
# create an array and a group
6262
_ = create_group(store=store, path="group", attributes={"node_type": "group"})

0 commit comments

Comments
 (0)