Skip to content

Commit 12c2de8

Browse files
committed
Fix inheritance
1 parent b06a0e5 commit 12c2de8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

numcodecs/zarr3.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
raise ImportError("zarr 3.0.0 or later is required to use the numcodecs zarr integration.")
4545

4646
from zarr.abc.codec import ArrayArrayCodec, ArrayBytesCodec, BytesBytesCodec
47+
from zarr.abc.metadata import Metadata
4748
from zarr.core.array_spec import ArraySpec
4849
from zarr.core.buffer import Buffer, BufferPrototype, NDBuffer
4950
from zarr.core.buffer.cpu import as_numpy_array_wrapper
@@ -71,7 +72,7 @@ def _parse_codec_configuration(data: dict[str, JSON]) -> dict[str, JSON]:
7172

7273

7374
@dataclass(frozen=True)
74-
class _NumcodecsCodec:
75+
class _NumcodecsCodec(Metadata):
7576
codec_name: str
7677
codec_config: dict[str, JSON]
7778

0 commit comments

Comments
 (0)