11import pathlib
22import warnings
3- from typing import Literal , cast
3+ from typing import Literal
44
55import numpy as np
66import pytest
2121 save_array ,
2222 save_group ,
2323)
24- from zarr .core .buffer import NDArrayLike
2524from zarr .core .common import MemoryOrder , ZarrFormat
2625from zarr .errors import MetadataValidationError
2726from 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 ])
139138def 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