@@ -80,7 +80,7 @@ class BaseTestZDType:
8080 valid_json_v2 : ClassVar [tuple [DTypeSpec_V2 , ...]] = ()
8181 invalid_json_v2 : ClassVar [tuple [str | dict [str , object ] | list [object ], ...]] = ()
8282
83- valid_json_v3 : ClassVar [tuple [DTypeSpec_V3 , ...]] = ()
83+ valid_json_v3 : ClassVar [tuple [DTypeSpec_V3 , ...]] = () # type: ignore[valid-type]
8484 invalid_json_v3 : ClassVar [tuple [str | dict [str , object ], ...]] = ()
8585
8686 # for testing scalar round-trip serialization, we need a tuple of (data type json, scalar json)
@@ -120,9 +120,9 @@ def test_from_json_roundtrip_v2(self, valid_json_v2: DTypeSpec_V2) -> None:
120120 assert zdtype .to_json (zarr_format = 2 ) == valid_json_v2
121121
122122 @pytest .mark .filterwarnings ("ignore::zarr.core.dtype.common.UnstableSpecificationWarning" )
123- def test_from_json_roundtrip_v3 (self , valid_json_v3 : DTypeSpec_V3 ) -> None :
123+ def test_from_json_roundtrip_v3 (self , valid_json_v3 : DTypeSpec_V3 ) -> None : # type: ignore[valid-type]
124124 zdtype = self .test_cls .from_json (valid_json_v3 , zarr_format = 3 )
125- assert zdtype .to_json (zarr_format = 3 ) == valid_json_v3
125+ assert zdtype .to_json (zarr_format = 3 ) == valid_json_v3 # type: ignore[operator]
126126
127127 def test_scalar_roundtrip_v2 (self , scalar_v2_params : tuple [ZDType [Any , Any ], Any ]) -> None :
128128 zdtype , scalar_json = scalar_v2_params
0 commit comments