@@ -343,7 +343,7 @@ def _from_json_v3(cls, data: DTypeJSON) -> Self:
343343 msg = f"Invalid JSON representation of { cls .__name__ } . Got { data !r} , expected the string { cls ._zarr_v3_name !r} "
344344 raise DataTypeValidationError (msg )
345345
346- @overload # type: ignore[override]
346+ @overload
347347 def to_json (self , zarr_format : Literal [2 ]) -> DTypeConfig_V2 [Literal ["|i1" ], None ]: ...
348348
349349 @overload
@@ -484,7 +484,7 @@ def _from_json_v3(cls, data: DTypeJSON) -> Self:
484484 msg = f"Invalid JSON representation of { cls .__name__ } . Got { data !r} , expected the string { cls ._zarr_v3_name !r} "
485485 raise DataTypeValidationError (msg )
486486
487- @overload # type: ignore[override]
487+ @overload
488488 def to_json (self , zarr_format : Literal [2 ]) -> DTypeConfig_V2 [Literal ["|u1" ], None ]: ...
489489
490490 @overload
@@ -646,7 +646,7 @@ def _from_json_v3(cls, data: DTypeJSON) -> Self:
646646 msg = f"Invalid JSON representation of { cls .__name__ } . Got { data !r} , expected the string { cls ._zarr_v3_name !r} "
647647 raise DataTypeValidationError (msg )
648648
649- @overload # type: ignore[override]
649+ @overload
650650 def to_json (self , zarr_format : Literal [2 ]) -> DTypeConfig_V2 [Literal [">i2" , "<i2" ], None ]: ...
651651
652652 @overload
@@ -806,7 +806,7 @@ def _from_json_v3(cls, data: DTypeJSON) -> Self:
806806 msg = f"Invalid JSON representation of UInt16. Got { data !r} , expected the string { cls ._zarr_v3_name !r} "
807807 raise DataTypeValidationError (msg )
808808
809- @overload # type: ignore[override]
809+ @overload
810810 def to_json (self , zarr_format : Literal [2 ]) -> DTypeConfig_V2 [Literal [">u2" , "<u2" ], None ]: ...
811811
812812 @overload
@@ -987,7 +987,7 @@ def _from_json_v3(cls, data: DTypeJSON) -> Self:
987987 msg = f"Invalid JSON representation of { cls .__name__ } . Got { data !r} , expected the string { cls ._zarr_v3_name !r} "
988988 raise DataTypeValidationError (msg )
989989
990- @overload # type: ignore[override]
990+ @overload
991991 def to_json (self , zarr_format : Literal [2 ]) -> DTypeConfig_V2 [Literal [">i4" , "<i4" ], None ]: ...
992992
993993 @overload
@@ -1150,7 +1150,7 @@ def _from_json_v3(cls, data: DTypeJSON) -> Self:
11501150 msg = f"Invalid JSON representation of { cls .__name__ } . Got { data !r} , expected the string { cls ._zarr_v3_name !r} "
11511151 raise DataTypeValidationError (msg )
11521152
1153- @overload # type: ignore[override]
1153+ @overload
11541154 def to_json (self , zarr_format : Literal [2 ]) -> DTypeConfig_V2 [Literal [">u4" , "<u4" ], None ]: ...
11551155 @overload
11561156 def to_json (self , zarr_format : Literal [3 ]) -> Literal ["uint32" ]: ...
@@ -1306,7 +1306,7 @@ def _from_json_v3(cls, data: DTypeJSON) -> Self:
13061306 msg = f"Invalid JSON representation of { cls .__name__ } . Got { data !r} , expected the string { cls ._zarr_v3_name !r} "
13071307 raise DataTypeValidationError (msg )
13081308
1309- @overload # type: ignore[override]
1309+ @overload
13101310 def to_json (self , zarr_format : Literal [2 ]) -> DTypeConfig_V2 [Literal [">i8" , "<i8" ], None ]: ...
13111311 @overload
13121312 def to_json (self , zarr_format : Literal [3 ]) -> Literal ["int64" ]: ...
@@ -1435,7 +1435,7 @@ def _from_json_v3(cls, data: DTypeJSON) -> Self:
14351435 msg = f"Invalid JSON representation of { cls .__name__ } . Got { data !r} , expected the string { cls ._zarr_v3_name !r} "
14361436 raise DataTypeValidationError (msg )
14371437
1438- @overload # type: ignore[override]
1438+ @overload
14391439 def to_json (self , zarr_format : Literal [2 ]) -> DTypeConfig_V2 [Literal [">u8" , "<u8" ], None ]: ...
14401440 @overload
14411441 def to_json (self , zarr_format : Literal [3 ]) -> Literal ["uint64" ]: ...
0 commit comments