Skip to content

Commit b39eec7

Browse files
committed
fix typing
1 parent c01506f commit b39eec7

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tests/test_api.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import pathlib
22
import warnings
3-
from typing import Literal, cast
3+
from typing import Literal
44

55
import numpy as np
66
import pytest
@@ -21,7 +21,6 @@
2121
save_array,
2222
save_group,
2323
)
24-
from zarr.core.buffer import NDArrayLike
2524
from zarr.core.common import MemoryOrder, ZarrFormat
2625
from zarr.errors import MetadataValidationError
2726
from zarr.storage._utils import normalize_path
@@ -138,7 +137,6 @@ async def test_open_group_unspecified_version(
138137
@pytest.mark.parametrize("n_kwargs", [10, 1, 0])
139138
def test_save(store: Store, n_args: int, n_kwargs: int) -> None:
140139
data = np.arange(10)
141-
data = cast(NDArrayLike, data)
142140
args = [np.arange(10) for _ in range(n_args)]
143141
kwargs = {f"arg_{i}": data for i in range(n_kwargs)}
144142

@@ -151,7 +149,7 @@ def test_save(store: Store, n_args: int, n_kwargs: int) -> None:
151149
assert isinstance(array, Array)
152150
assert_array_equal(array[:], data)
153151
else:
154-
save(store, *args, **kwargs)
152+
save(store, *args, zarr_format=None, path=None, **kwargs)
155153
group = open(store)
156154
assert isinstance(group, Group)
157155
for array in group.array_values():

0 commit comments

Comments
 (0)