@@ -230,7 +230,7 @@ def test_array_v3_fill_value(store: MemoryStore, fill_value: int, dtype_str: str
230230async def test_create_deprecated () -> None :
231231 with pytest .warns (DeprecationWarning ):
232232 with pytest .warns (FutureWarning , match = re .escape ("Pass shape=(2, 2) as keyword args" )):
233- await zarr .AsyncArray .create (MemoryStore (), (2 , 2 ), dtype = "f8" ) # type: ignore[arg-type ]
233+ await zarr .AsyncArray .create (MemoryStore (), (2 , 2 ), dtype = "f8" ) # type: ignore[call-overload ]
234234 with pytest .warns (DeprecationWarning ):
235235 with pytest .warns (FutureWarning , match = re .escape ("Pass shape=(2, 2) as keyword args" )):
236236 zarr .Array .create (MemoryStore (), (2 , 2 ), dtype = "f8" )
@@ -325,12 +325,13 @@ def test_serializable_sync_array(store: LocalStore, zarr_format: ZarrFormat) ->
325325
326326@pytest .mark .parametrize ("store" , ["memory" ], indirect = True )
327327@pytest .mark .parametrize ("zarr_format" , [2 , 3 , "invalid" ])
328- def test_storage_transformers (store : MemoryStore , zarr_format ) -> None :
328+ def test_storage_transformers (store : MemoryStore , zarr_format : ZarrFormat ) -> None :
329329 """
330330 Test that providing an actual storage transformer produces a warning and otherwise passes through
331331 """
332+ metadata_dict : dict [str , JSON ]
332333 if zarr_format == 3 :
333- metadata_dict : dict [ str , JSON ] = {
334+ metadata_dict = {
334335 "zarr_format" : 3 ,
335336 "node_type" : "array" ,
336337 "shape" : (10 ,),
@@ -342,7 +343,7 @@ def test_storage_transformers(store: MemoryStore, zarr_format) -> None:
342343 "storage_transformers" : ({"test" : "should_raise" }),
343344 }
344345 else :
345- metadata_dict : dict [ str , JSON ] = {
346+ metadata_dict = {
346347 "zarr_format" : zarr_format ,
347348 "shape" : (10 ,),
348349 "chunks" : (1 ,),
0 commit comments