Skip to content

Commit b8b5f51

Browse files
committed
fixups
1 parent 08a7682 commit b8b5f51

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/zarr/core/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
ZARRAY_JSON = ".zarray"
2929
ZGROUP_JSON = ".zgroup"
3030
ZATTRS_JSON = ".zattrs"
31-
ZMETADATA_v2_JSON = ".zmetadata"
31+
ZMETADATA_V2_JSON = ".zmetadata"
3232

3333
ByteRangeRequest = tuple[int | None, int | None]
3434
BytesLike = bytes | bytearray | memoryview

src/zarr/core/group.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
ZARRAY_JSON,
2525
ZATTRS_JSON,
2626
ZGROUP_JSON,
27+
ZMETADATA_V2_JSON,
2728
ChunkCoords,
2829
ShapeLike,
2930
ZarrFormat,
@@ -395,7 +396,7 @@ async def open(
395396
"""
396397
store_path = await make_store_path(store)
397398

398-
consolidated_key = ".zmetadata"
399+
consolidated_key = ZMETADATA_V2_JSON
399400
if (zarr_format == 2 or zarr_format is None) and isinstance(use_consolidated, str):
400401
consolidated_key = use_consolidated
401402

src/zarr/core/metadata/v3.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,6 @@
3737
from zarr.core.metadata.common import ArrayMetadata, parse_attributes
3838
from zarr.registry import get_codec_class
3939

40-
# For type checking
41-
_bool = bool
42-
43-
__all__ = ["ArrayMetadata"]
44-
4540

4641
def parse_zarr_format(data: object) -> Literal[3]:
4742
if data == 3:
@@ -315,6 +310,10 @@ def parse_fill_value(
315310
return dtype.type(fill_value) # type: ignore[arg-type]
316311

317312

313+
# For type checking
314+
_bool = bool
315+
316+
318317
class DataType(Enum):
319318
bool = "bool"
320319
int8 = "int8"

0 commit comments

Comments
 (0)