Skip to content

Commit 3aee7b0

Browse files
committed
use public apis
1 parent 47122a4 commit 3aee7b0

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/zarr/core/group.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,9 @@
6363
Coroutine,
6464
Generator,
6565
Iterable,
66-
Iterator
66+
Iterator,
6767
)
68+
from types import TracebackType
6869
from typing import Any
6970

7071
from zarr.core.array_spec import ArrayConfig, ArrayConfigLike

tests/test_group.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -455,12 +455,12 @@ def test_group_with_context_manager(store: Store, zarr_format: ZarrFormat, overw
455455

456456
# attempt to open a group that does not exist.
457457
with pytest.raises(FileNotFoundError):
458-
with Group.open(store) as store:
458+
with zarr.open_group(store, mode="r") as group:
459459
pass
460460

461461
attrs = {"path": "foo"}
462462

463-
with Group.from_store(
463+
with zarr.create_group(
464464
store, attributes=attrs, zarr_format=zarr_format, overwrite=overwrite
465465
) as group:
466466
assert store._is_open

0 commit comments

Comments
 (0)