@@ -237,7 +237,7 @@ def test_open_with_mode_r(tmp_path: pathlib.Path) -> None:
237237    assert  isinstance (z2 , Array )
238238    assert  z2 .fill_value  ==  1 
239239    assert  isinstance (z2 [:], NDArrayLike )
240-     assert  (z2 [:] ==  1 ).all ()
240+     assert  (z2 [:] ==  1 ).all ()  # type: ignore [operator] 
241241    with  pytest .raises (ValueError ):
242242        z2 [:] =  3 
243243
@@ -249,7 +249,8 @@ def test_open_with_mode_r_plus(tmp_path: pathlib.Path) -> None:
249249    zarr .ones (store = tmp_path , shape = (3 , 3 ))
250250    z2  =  zarr .open (store = tmp_path , mode = "r+" )
251251    assert  isinstance (z2 , Array )
252-     assert  (z2 [:] ==  1 ).all ()
252+     assert  isinstance (z2 [:], NDArrayLike )
253+     assert  (z2 [:] ==  1 ).all () # type: ignore [operator] 
253254    z2 [:] =  3 
254255
255256
@@ -265,7 +266,8 @@ async def test_open_with_mode_a(tmp_path: pathlib.Path) -> None:
265266    arr [...] =  1 
266267    z2  =  zarr .open (store = tmp_path , mode = "a" )
267268    assert  isinstance (z2 , Array )
268-     assert  (z2 [:] ==  1 ).all ()
269+     assert  isinstance (z2 [:], NDArrayLike )
270+     assert  (z2 [:] ==  1 ).all () # type: ignore [operator] 
269271    z2 [:] =  3 
270272
271273
@@ -277,7 +279,8 @@ def test_open_with_mode_w(tmp_path: pathlib.Path) -> None:
277279    arr [...] =  3 
278280    z2  =  zarr .open (store = tmp_path , mode = "w" , shape = (3 , 3 ))
279281    assert  isinstance (z2 , Array )
280-     assert  not  (z2 [:] ==  3 ).all ()
282+     assert  isinstance (z2 [:], NDArrayLike )
283+     assert  (z2 [:] ==  3 ).all () # type: ignore [operator] 
281284    z2 [:] =  3 
282285
283286
0 commit comments