Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
8da1333
chore(deps): bump the actions group across 1 directory with 8 updates…
dependabot[bot] May 31, 2026
659c734
Merge branch 'main' of https://github.com/d-v-b/zarr-python
d-v-b Jun 6, 2026
51c994b
Merge branch 'main' of https://github.com/zarr-developers/zarr-python
d-v-b Jun 6, 2026
117b7ba
Merge branch 'main' of github.com:d-v-b/zarr-python
d-v-b Jun 12, 2026
d4de75d
Merge branch 'main' of github.com:zarr-developers/zarr-python
d-v-b Jun 12, 2026
86dabd5
Merge branch 'main' of github.com:zarr-developers/zarr-python
d-v-b Jun 12, 2026
e18efb7
refactor(dtype): lift int dtype boilerplate into BaseInt (S11, B17)
d-v-b Jun 12, 2026
30d1d58
docs(group): replace Group.create copy-pasted docstring with alias (S12)
d-v-b Jun 12, 2026
c4090d2
refactor(registry): collapse three _parse_*_codec functions (S15)
d-v-b Jun 12, 2026
7f6f894
refactor(store): add Store._check_value helper for Buffer-type check …
d-v-b Jun 12, 2026
1587be4
refactor(group): fold v2/v3 node + group-metadata readers into dispat…
d-v-b Jun 12, 2026
e972d48
refactor(indexing): dedupe vindex invalid-selection error (S18)
d-v-b Jun 12, 2026
b1cf90a
perf(indexing): single-pass shared __iter__ for Basic/BlockIndexer (S…
d-v-b Jun 12, 2026
6734efb
refactor: delete dead code _with_semaphore and scalar_failed_type_che…
d-v-b Jun 12, 2026
99141c3
refactor(group): remove double _parse_deprecated_compressor call (S22)
d-v-b Jun 12, 2026
09ff003
refactor: refresh simplifications without regressing buffer ownership
d-v-b Sep 12, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions src/zarr/abc/store.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,20 @@ def _check_writable(self) -> None:
if self.read_only:
raise ValueError("store was opened in read-only mode and does not support writing")

def _check_value(self, value: object) -> None:
"""Raise a TypeError if ``value`` is not a Buffer instance.

The error message is prefixed with the concrete store class name, e.g.
``MemoryStore.set(): ...``, so that callers do not have to repeat it.
"""
from zarr.core.buffer import Buffer

if not isinstance(value, Buffer):
raise TypeError(
f"{type(self).__name__}.set(): `value` must be a Buffer instance. "
f"Got an instance of {type(value)} instead."
)

@abstractmethod
def __eq__(self, value: object) -> bool:
"""Equality comparison."""
Expand Down
Loading
Loading