Skip to content

Commit 82e10d6

Browse files
committed
fix: use empty typeddict for crc32c config
1 parent cf12cdc commit 82e10d6

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

  • packages/zarr-metadata/src/zarr_metadata/v3/codec

packages/zarr-metadata/src/zarr_metadata/v3/codec/crc32c.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,17 @@
99

1010
from typing import Final, Literal, NotRequired, TypedDict
1111

12-
from zarr_metadata.common import JSON
13-
1412
CRC32C_CODEC_NAME: Final = "crc32c"
1513
"""The `name` field value of the `crc32c` codec."""
1614

1715
Crc32cCodecName = Literal["crc32c"]
1816
"""Literal type of the `name` field of the `crc32c` codec."""
1917

2018

19+
class Empty(TypedDict, closed=True): # type: ignore[call-arg]
20+
"""An empty mapping"""
21+
22+
2123
class Crc32cCodec(TypedDict):
2224
"""`crc32c` codec metadata.
2325
@@ -26,7 +28,7 @@ class Crc32cCodec(TypedDict):
2628
"""
2729

2830
name: Crc32cCodecName
29-
configuration: NotRequired[dict[str, JSON]]
31+
configuration: NotRequired[Empty]
3032

3133

3234
__all__ = [

0 commit comments

Comments
 (0)