71
71
72
72
from zarr .abc .numcodec import Numcodec
73
73
from zarr .codecs .blosc import BloscJSON_V2 , BloscJSON_V3
74
- from zarr .codecs .crc32c_ import Crc32cConfig , Crc32cJSON_V2 , Crc32cJSON_V3
74
+ from zarr .codecs .crc32c_ import Crc32cConfig_V2 , Crc32cJSON_V2 , Crc32cJSON_V3
75
75
from zarr .codecs .gzip import GZipConfig , GZipJSON_V2 , GZipJSON_V3
76
76
from zarr .codecs .zstd import ZstdConfig_V3 , ZstdJSON_V2 , ZstdJSON_V3
77
77
from zarr .core .array_spec import ArraySpec
@@ -253,6 +253,8 @@ class AsTypeJSON_V3(NamedRequiredConfig[Literal["astype"], AsTypeConfig]):
253
253
class Crc32Config (TypedDict ):
254
254
"""Configuration parameters for CRC32 codec."""
255
255
256
+ location : Literal ["start" , "end" ]
257
+
256
258
257
259
class Crc32JSON_V2 (Crc32Config ):
258
260
"""JSON representation of CRC32 codec for Zarr V2."""
@@ -267,6 +269,8 @@ class Crc32JSON_V3(NamedConfig[Literal["crc32"], Crc32Config]):
267
269
class Adler32Config (TypedDict ):
268
270
"""Configuration parameters for Adler32 codec."""
269
271
272
+ location : Literal ["start" , "end" ]
273
+
270
274
271
275
class Adler32JSON_V2 (Adler32Config ):
272
276
"""JSON representation of Adler32 codec for Zarr V2."""
@@ -295,6 +299,9 @@ class Fletcher32JSON_V3(NamedRequiredConfig[Literal["fletcher32"], Fletcher32Con
295
299
class JenkinsLookup3Config (TypedDict ):
296
300
"""Configuration parameters for JenkinsLookup3 codec."""
297
301
302
+ initval : int
303
+ prefix : bytes
304
+
298
305
299
306
class JenkinsLookup3JSON_V2 (JenkinsLookup3Config ):
300
307
"""JSON representation of JenkinsLookup3 codec for Zarr V2."""
@@ -747,7 +754,7 @@ def to_json(self, zarr_format: ZarrFormat) -> Crc32JSON_V2 | Crc32JSON_V3:
747
754
class CRC32C (_NumcodecsChecksumCodec ):
748
755
codec_name = "numcodecs.crc32c"
749
756
_codec_id = "crc32c"
750
- codec_config : Crc32cConfig
757
+ codec_config : Crc32cConfig_V2
751
758
752
759
@overload
753
760
def to_json (self , zarr_format : Literal [2 ]) -> Crc32cJSON_V2 : ...
0 commit comments