2525if TYPE_CHECKING :
2626 from collections .abc import Iterator
2727
28- from zarr .abc .store import Store
2928 from zarr .core .common import ChunkCoords
3029
3130
3231@pytest .fixture
33- async def store () -> Iterator [Store ]:
32+ async def store () -> Iterator [StorePath ]:
3433 yield StorePath (await MemoryStore .open (mode = "w" ))
3534
3635
@@ -52,7 +51,7 @@ def zarr_array_from_numpy_array(
5251
5352class CountingDict (MemoryStore ):
5453 @classmethod
55- async def open (cls ):
54+ async def open (cls ) -> CountingDict :
5655 store = await super ().open (mode = "w" )
5756 store .counter = Counter ()
5857 return store
@@ -68,7 +67,7 @@ async def set(self, key, value, byte_range=None):
6867 return await super ().set (key , value , byte_range )
6968
7069
71- def test_normalize_integer_selection ():
70+ def test_normalize_integer_selection () -> None :
7271 assert 1 == normalize_integer_selection (1 , 100 )
7372 assert 99 == normalize_integer_selection (- 1 , 100 )
7473 with pytest .raises (IndexError ):
@@ -79,7 +78,7 @@ def test_normalize_integer_selection():
7978 normalize_integer_selection (- 1000 , 100 )
8079
8180
82- def test_replace_ellipsis ():
81+ def test_replace_ellipsis () -> None :
8382 # 1D, single item
8483 assert (0 ,) == replace_ellipsis (0 , (100 ,))
8584
@@ -258,7 +257,7 @@ def _test_get_basic_selection(a, z, selection):
258257
259258
260259# noinspection PyStatementEffect
261- def test_get_basic_selection_1d (store : StorePath ):
260+ def test_get_basic_selection_1d (store : StorePath ) -> None :
262261 # setup
263262 a = np .arange (1050 , dtype = int )
264263 z = zarr_array_from_numpy_array (store , a , chunk_shape = (100 ,))
@@ -328,7 +327,7 @@ def test_get_basic_selection_1d(store: StorePath):
328327
329328
330329# noinspection PyStatementEffect
331- def test_get_basic_selection_2d (store : StorePath ):
330+ def test_get_basic_selection_2d (store : StorePath ) -> None :
332331 # setup
333332 a = np .arange (10000 , dtype = int ).reshape (1000 , 10 )
334333 z = zarr_array_from_numpy_array (store , a , chunk_shape = (300 , 3 ))
@@ -349,7 +348,7 @@ def test_get_basic_selection_2d(store: StorePath):
349348 np .testing .assert_array_equal (z [fancy_selection ], [0 , 11 ])
350349
351350
352- def test_fancy_indexing_fallback_on_get_setitem (store : StorePath ):
351+ def test_fancy_indexing_fallback_on_get_setitem (store : StorePath ) -> None :
353352 z = zarr_array_from_numpy_array (store , np .zeros ((20 , 20 )))
354353 z [[1 , 2 , 3 ], [1 , 2 , 3 ]] = 1
355354 np .testing .assert_array_equal (
0 commit comments