@@ -15,7 +15,7 @@ class FixedLengthBytesConfig(TypedDict):
1515 length_bytes : int
1616
1717
18- NTBytesJSONV3 = NamedConfig [Literal ["null_terminated_bytes" ], FixedLengthBytesConfig ]
18+ NullTerminatedBytesJSONV3 = NamedConfig [Literal ["null_terminated_bytes" ], FixedLengthBytesConfig ]
1919RawBytesJSONV3 = NamedConfig [Literal ["raw_bytes" ], FixedLengthBytesConfig ]
2020
2121
@@ -40,7 +40,7 @@ def _check_json_v2(cls, data: JSON, *, object_codec_id: str | None = None) -> Ty
4040 return isinstance (data , str ) and re .match (r"^\|S\d+$" , data ) is not None
4141
4242 @classmethod
43- def _check_json_v3 (cls , data : JSON ) -> TypeGuard [NTBytesJSONV3 ]:
43+ def _check_json_v3 (cls , data : JSON ) -> TypeGuard [NullTerminatedBytesJSONV3 ]:
4444 return (
4545 isinstance (data , dict )
4646 and set (data .keys ()) == {"name" , "configuration" }
@@ -53,9 +53,9 @@ def _check_json_v3(cls, data: JSON) -> TypeGuard[NTBytesJSONV3]:
5353 def to_json (self , zarr_format : Literal [2 ]) -> str : ...
5454
5555 @overload
56- def to_json (self , zarr_format : Literal [3 ]) -> NTBytesJSONV3 : ...
56+ def to_json (self , zarr_format : Literal [3 ]) -> NullTerminatedBytesJSONV3 : ...
5757
58- def to_json (self , zarr_format : ZarrFormat ) -> str | NTBytesJSONV3 :
58+ def to_json (self , zarr_format : ZarrFormat ) -> str | NullTerminatedBytesJSONV3 :
5959 if zarr_format == 2 :
6060 return self .to_native_dtype ().str
6161 elif zarr_format == 3 :
0 commit comments