@@ -658,7 +658,7 @@ def test_resize_1d(store: MemoryStore, zarr_format: ZarrFormat) -> None:
658658 assert (205 ,) == z .shape
659659 assert (205 ,) == z [:].shape # type: ignore[union-attr]
660660 assert np .dtype ("i4" ) == z .dtype
661- assert np .dtype ("i4" ) == z [:].dtype
661+ assert np .dtype ("i4" ) == z [:].dtype # type: ignore[union-attr]
662662 assert (10 ,) == z .chunks
663663 np .testing .assert_array_equal (a , z [:105 ])
664664 np .testing .assert_array_equal (np .zeros (100 , dtype = "i4" ), z [105 :])
@@ -693,15 +693,15 @@ def test_resize_2d(store: MemoryStore, zarr_format: ZarrFormat) -> None:
693693 assert (105 , 105 ) == z .shape
694694 assert (105 , 105 ) == z [:].shape # type: ignore[union-attr]
695695 assert np .dtype ("i4" ) == z .dtype
696- assert np .dtype ("i4" ) == z [:].dtype
696+ assert np .dtype ("i4" ) == z [:].dtype # type: ignore[union-attr]
697697 assert (10 , 10 ) == z .chunks
698698 np .testing .assert_array_equal (a , z [:])
699699
700700 z .resize ((205 , 205 ))
701701 assert (205 , 205 ) == z .shape
702702 assert (205 , 205 ) == z [:].shape # type: ignore[union-attr]
703703 assert np .dtype ("i4" ) == z .dtype
704- assert np .dtype ("i4" ) == z [:].dtype
704+ assert np .dtype ("i4" ) == z [:].dtype # type: ignore[union-attr]
705705 assert (10 , 10 ) == z .chunks
706706 np .testing .assert_array_equal (a , z [:105 , :105 ])
707707 np .testing .assert_array_equal (np .zeros ((100 , 205 ), dtype = "i4" ), z [105 :, :])
@@ -711,23 +711,23 @@ def test_resize_2d(store: MemoryStore, zarr_format: ZarrFormat) -> None:
711711 assert (55 , 55 ) == z .shape
712712 assert (55 , 55 ) == z [:].shape # type: ignore[union-attr]
713713 assert np .dtype ("i4" ) == z .dtype
714- assert np .dtype ("i4" ) == z [:].dtype
714+ assert np .dtype ("i4" ) == z [:].dtype # type: ignore[union-attr]
715715 assert (10 , 10 ) == z .chunks
716716 np .testing .assert_array_equal (a [:55 , :55 ], z [:])
717717
718718 z .resize ((55 , 1 ))
719719 assert (55 , 1 ) == z .shape
720720 assert (55 , 1 ) == z [:].shape # type: ignore[union-attr]
721721 assert np .dtype ("i4" ) == z .dtype
722- assert np .dtype ("i4" ) == z [:].dtype
722+ assert np .dtype ("i4" ) == z [:].dtype # type: ignore[union-attr]
723723 assert (10 , 10 ) == z .chunks
724724 np .testing .assert_array_equal (a [:55 , :1 ], z [:])
725725
726726 z .resize ((1 , 55 ))
727727 assert (1 , 55 ) == z .shape
728728 assert (1 , 55 ) == z [:].shape # type: ignore[union-attr]
729729 assert np .dtype ("i4" ) == z .dtype
730- assert np .dtype ("i4" ) == z [:].dtype
730+ assert np .dtype ("i4" ) == z [:].dtype # type: ignore[union-attr]
731731 assert (10 , 10 ) == z .chunks
732732 np .testing .assert_array_equal (a [:1 , :10 ], z [:, :10 ])
733733 np .testing .assert_array_equal (np .zeros ((1 , 55 - 10 ), dtype = "i4" ), z [:, 10 :55 ])
0 commit comments