We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2eaa79d commit e5e45c3Copy full SHA for e5e45c3
tests/test_api.py
@@ -1,6 +1,6 @@
1
import pathlib
2
import warnings
3
-from typing import Literal
+from typing import Literal, cast
4
5
import numpy as np
6
import pytest
@@ -21,6 +21,7 @@
21
save_array,
22
save_group,
23
)
24
+from zarr.core.buffer import NDArrayLike
25
from zarr.core.common import MemoryOrder, ZarrFormat
26
from zarr.errors import MetadataValidationError
27
from zarr.storage._utils import normalize_path
@@ -137,6 +138,7 @@ async def test_open_group_unspecified_version(
137
138
@pytest.mark.parametrize("n_kwargs", [10, 1, 0])
139
def test_save(store: Store, n_args: int, n_kwargs: int) -> None:
140
data = np.arange(10)
141
+ data = cast(NDArrayLike, data)
142
143
if n_kwargs == 0 and n_args == 0:
144
with pytest.raises(ValueError):
0 commit comments