Skip to content

Commit b0091d9

Browse files
committed
Remove comments and update test_config.
1 parent 5efb587 commit b0091d9

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/zarr/registry.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
from zarr.core.chunk_key_encodings import ChunkKeyEncoding
2626
from zarr.core.common import JSON
2727

28-
# CHANGE: Consider adding here
2928
__all__ = [
3029
"Registry",
3130
"get_buffer_class",
@@ -64,10 +63,8 @@ def register(self, cls: type[T], qualname: str | None = None) -> None:
6463
__pipeline_registry: Registry[CodecPipeline] = Registry()
6564
__buffer_registry: Registry[Buffer] = Registry()
6665
__ndbuffer_registry: Registry[NDBuffer] = Registry()
67-
# Now a dict[str, Registry[ChunkKeyEncoding]]
6866
__chunk_key_encoding_registries: dict[str, Registry[ChunkKeyEncoding]] = defaultdict(Registry)
6967

70-
# CHANGE: Consider updating docstring
7168
"""
7269
The registry module is responsible for managing implementations of codecs,
7370
pipelines, buffers, ndbuffers, and chunk key encodings and collecting them from entrypoints.

tests/test_config.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@ def test_config_defaults_set() -> None:
7474
"vlen-utf8": "zarr.codecs.vlen_utf8.VLenUTF8Codec",
7575
"vlen-bytes": "zarr.codecs.vlen_utf8.VLenBytesCodec",
7676
},
77+
"chunk_key_encodings": {
78+
"default": "zarr.core.chunk_key_encodings.DefaultChunkKeyEncoding",
79+
"v2": "zarr.core.chunk_key_encodings.V2ChunkKeyEncoding",
80+
},
7781
"buffer": "zarr.buffer.cpu.Buffer",
7882
"ndbuffer": "zarr.buffer.cpu.NDBuffer",
7983
}

0 commit comments

Comments
 (0)