From d771799155aef3866cb25e0922288e5a9f68d94e Mon Sep 17 00:00:00 2001 From: Davis Vann Bennett Date: Thu, 17 Jul 2025 23:00:44 +0200 Subject: [PATCH 1/4] remove warning about vlen-utf8 codec now that a spec is published --- src/zarr/codecs/vlen_utf8.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/zarr/codecs/vlen_utf8.py b/src/zarr/codecs/vlen_utf8.py index b7c0418b2e..59443e0e94 100644 --- a/src/zarr/codecs/vlen_utf8.py +++ b/src/zarr/codecs/vlen_utf8.py @@ -25,15 +25,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( From 19f4e29b751441f00f4e49c90abb97b553f48e01 Mon Sep 17 00:00:00 2001 From: Davis Vann Bennett Date: Thu, 17 Jul 2025 23:02:49 +0200 Subject: [PATCH 2/4] remove vlen-bytes warning --- src/zarr/codecs/vlen_utf8.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/zarr/codecs/vlen_utf8.py b/src/zarr/codecs/vlen_utf8.py index 59443e0e94..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 @@ -71,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( From 3de1d2c4dbbd7e1d7bb382a1993c9dc8a4187350 Mon Sep 17 00:00:00 2001 From: Davis Vann Bennett Date: Thu, 17 Jul 2025 23:11:49 +0200 Subject: [PATCH 3/4] changelog --- changes/3268.chore.rst | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 changes/3268.chore.rst diff --git a/changes/3268.chore.rst b/changes/3268.chore.rst new file mode 100644 index 0000000000..cd8f611639 --- /dev/null +++ b/changes/3268.chore.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 From f2931bdb00101dd58ccdd8145b6262fab452f205 Mon Sep 17 00:00:00 2001 From: Davis Vann Bennett Date: Thu, 17 Jul 2025 23:13:02 +0200 Subject: [PATCH 4/4] miscify it --- changes/{3268.chore.rst => 3268.misc.rst} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename changes/{3268.chore.rst => 3268.misc.rst} (100%) diff --git a/changes/3268.chore.rst b/changes/3268.misc.rst similarity index 100% rename from changes/3268.chore.rst rename to changes/3268.misc.rst