diff --git a/changes/3268.misc.rst b/changes/3268.misc.rst new file mode 100644 index 0000000000..cd8f611639 --- /dev/null +++ b/changes/3268.misc.rst @@ -0,0 +1,2 @@ +Removed warnings that were emitted when using the ``vlen-utf8`` and ``vlen-bytes`` codecs. Those +warnings are no longer needed now that both of these codecs are backed by specification documents. \ No newline at end of file diff --git a/src/zarr/codecs/vlen_utf8.py b/src/zarr/codecs/vlen_utf8.py index b7c0418b2e..bad51f33ce 100644 --- a/src/zarr/codecs/vlen_utf8.py +++ b/src/zarr/codecs/vlen_utf8.py @@ -2,7 +2,6 @@ from dataclasses import dataclass from typing import TYPE_CHECKING -from warnings import warn import numpy as np from numcodecs.vlen import VLenBytes, VLenUTF8 @@ -25,15 +24,6 @@ @dataclass(frozen=True) class VLenUTF8Codec(ArrayBytesCodec): - def __init__(self) -> None: - warn( - "The codec `vlen-utf8` is currently not part in the Zarr format 3 specification. It " - "may not be supported by other zarr implementations and may change in the future.", - category=UserWarning, - stacklevel=2, - ) - super().__init__() - @classmethod def from_dict(cls, data: dict[str, JSON]) -> Self: _, configuration_parsed = parse_named_configuration( @@ -80,15 +70,6 @@ def compute_encoded_size(self, input_byte_length: int, _chunk_spec: ArraySpec) - @dataclass(frozen=True) class VLenBytesCodec(ArrayBytesCodec): - def __init__(self) -> None: - warn( - "The codec `vlen-bytes` is currently not part in the Zarr format 3 specification. It " - "may not be supported by other zarr implementations and may change in the future.", - category=UserWarning, - stacklevel=2, - ) - super().__init__() - @classmethod def from_dict(cls, data: dict[str, JSON]) -> Self: _, configuration_parsed = parse_named_configuration(