Skip to content

Commit

Permalink
cached_property -> vanilla property
Browse files Browse the repository at this point in the history
  • Loading branch information
d-v-b committed Jun 12, 2024
1 parent 2d5a84e commit 99797c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/zarr/codecs/sharding.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit 99797c2

Please sign in to comment.