From 99797c2a414b46eb4a54692d4440ed82c7335f35 Mon Sep 17 00:00:00 2001 From: Davis Vann Bennett Date: Wed, 12 Jun 2024 11:16:47 +0200 Subject: [PATCH] cached_property -> vanilla property --- src/zarr/codecs/sharding.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/zarr/codecs/sharding.py b/src/zarr/codecs/sharding.py index f63f3f1f1..def95b206 100644 --- a/src/zarr/codecs/sharding.py +++ b/src/zarr/codecs/sharding.py @@ -3,7 +3,7 @@ from collections.abc import Iterable, Mapping, MutableMapping from dataclasses import dataclass, field, replace from enum import Enum -from functools import cached_property, lru_cache +from functools import lru_cache from operator import itemgetter from typing import TYPE_CHECKING, Any, NamedTuple @@ -329,7 +329,7 @@ def from_dict(cls, data: dict[str, JSON]) -> Self: _, configuration_parsed = parse_named_configuration(data, "sharding_indexed") return cls(**configuration_parsed) # type: ignore[arg-type] - @cached_property + @property def codec_pipeline(self) -> BatchedCodecPipeline: return BatchedCodecPipeline.from_list(self.codecs)