Skip to content

Commit c9fcf8f

Browse files
committed
test: correct typing
1 parent e103d74 commit c9fcf8f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/test_attributes.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ def test_update_no_changes() -> None:
6666
@pytest.mark.parametrize("group", [True, False])
6767
def test_del_works(group: bool) -> None:
6868
store = zarr.storage.MemoryStore()
69+
z: zarr.Group | zarr.Array
6970
if group:
7071
z = zarr.create_group(store)
7172
else:
@@ -75,6 +76,7 @@ def test_del_works(group: bool) -> None:
7576
del z.attrs["a"]
7677
assert dict(z.attrs) == {"c": 4}
7778

79+
z2: zarr.Group | zarr.Array
7880
if group:
7981
z2 = zarr.open_group(store)
8082
else:

0 commit comments

Comments
 (0)