@@ -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 () # type: ignore [operator ]
240+ assert (z2 [:] == 1 ).all () # type: ignore [union-attr ]
241241 with pytest .raises (ValueError ):
242242 z2 [:] = 3
243243
@@ -250,7 +250,7 @@ def test_open_with_mode_r_plus(tmp_path: pathlib.Path) -> None:
250250 z2 = zarr .open (store = tmp_path , mode = "r+" )
251251 assert isinstance (z2 , Array )
252252 assert isinstance (z2 [:], NDArrayLike )
253- assert (z2 [:] == 1 ).all () # type: ignore [operator ]
253+ assert (z2 [:] == 1 ).all () # type: ignore [union-attr ]
254254 z2 [:] = 3
255255
256256
@@ -267,7 +267,7 @@ async def test_open_with_mode_a(tmp_path: pathlib.Path) -> None:
267267 z2 = zarr .open (store = tmp_path , mode = "a" )
268268 assert isinstance (z2 , Array )
269269 assert isinstance (z2 [:], NDArrayLike )
270- assert (z2 [:] == 1 ).all () # type: ignore [operator ]
270+ assert (z2 [:] == 1 ).all () # type: ignore [union-attr ]
271271 z2 [:] = 3
272272
273273
@@ -280,7 +280,7 @@ def test_open_with_mode_w(tmp_path: pathlib.Path) -> None:
280280 z2 = zarr .open (store = tmp_path , mode = "w" , shape = (3 , 3 ))
281281 assert isinstance (z2 , Array )
282282 assert isinstance (z2 [:], NDArrayLike )
283- assert (z2 [:] == 3 ).all () # type: ignore [operator ]
283+ assert (z2 [:] == 3 ).all () # type: ignore [union-attr ]
284284 z2 [:] = 3
285285
286286
0 commit comments