Skip to content

Commit b3e8875

Browse files
committed
chore: make_store_path is private
1 parent bd6dc14 commit b3e8875

File tree

6 files changed

+11
-12
lines changed

6 files changed

+11
-12
lines changed

src/zarr/api/asynchronous.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,14 @@
2727
from zarr.core.metadata import ArrayMetadataDict, ArrayV2Metadata, ArrayV3Metadata
2828
from zarr.core.metadata.v2 import _default_filters_and_compressor
2929
from zarr.errors import NodeTypeValidationError
30-
from zarr.storage import (
31-
StoreLike,
32-
make_store_path,
33-
)
30+
from zarr.storage._common import make_store_path
3431

3532
if TYPE_CHECKING:
3633
from collections.abc import Iterable
3734

3835
from zarr.abc.codec import Codec
3936
from zarr.core.chunk_key_encodings import ChunkKeyEncoding
37+
from zarr.storage import StoreLike
4038

4139
# TODO: this type could use some more thought
4240
ArrayLike = AsyncArray[ArrayV2Metadata] | AsyncArray[ArrayV3Metadata] | Array | npt.NDArray[Any]

src/zarr/core/array.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,15 +85,15 @@
8585
from zarr.core.sync import sync
8686
from zarr.errors import MetadataValidationError
8787
from zarr.registry import get_pipeline_class
88-
from zarr.storage import StoreLike, make_store_path
89-
from zarr.storage._common import StorePath, ensure_no_existing_node
88+
from zarr.storage._common import StorePath, ensure_no_existing_node, make_store_path
9089

9190
if TYPE_CHECKING:
9291
from collections.abc import Iterable, Iterator, Sequence
9392
from typing import Self
9493

9594
from zarr.abc.codec import Codec, CodecPipeline
9695
from zarr.core.group import AsyncGroup
96+
from zarr.storage import StoreLike
9797

9898
# Array and AsyncArray are defined in the base ``zarr`` namespace
9999
__all__ = ["create_codec_pipeline", "parse_array_metadata"]

src/zarr/core/group.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@
3939
from zarr.core.metadata.v3 import V3JsonEncoder
4040
from zarr.core.sync import SyncMixin, sync
4141
from zarr.errors import MetadataValidationError
42-
from zarr.storage import StoreLike, StorePath, make_store_path
43-
from zarr.storage._common import ensure_no_existing_node
42+
from zarr.storage import StoreLike, StorePath
43+
from zarr.storage._common import ensure_no_existing_node, make_store_path
4444

4545
if TYPE_CHECKING:
4646
from collections.abc import AsyncGenerator, Generator, Iterable, Iterator

src/zarr/storage/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from types import ModuleType
44
from typing import Any
55

6-
from zarr.storage._common import StoreLike, StorePath, make_store_path
6+
from zarr.storage._common import StoreLike, StorePath
77
from zarr.storage._fsspec import FsspecStore
88
from zarr.storage._local import LocalStore
99
from zarr.storage._logging import LoggingStore
@@ -21,7 +21,6 @@
2121
"StorePath",
2222
"WrapperStore",
2323
"ZipStore",
24-
"make_store_path",
2524
]
2625

2726

tests/test_group.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
from zarr.core.group import ConsolidatedMetadata, GroupMetadata
2222
from zarr.core.sync import sync
2323
from zarr.errors import ContainsArrayError, ContainsGroupError
24-
from zarr.storage import LocalStore, MemoryStore, StorePath, ZipStore, make_store_path
24+
from zarr.storage import LocalStore, MemoryStore, StorePath, ZipStore
25+
from zarr.storage._common import make_store_path
2526

2627
from .conftest import parse_store
2728

tests/test_store/test_core.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
from _pytest.compat import LEGACY_PATH
66

77
from zarr.core.common import AccessModeLiteral
8-
from zarr.storage import FsspecStore, LocalStore, MemoryStore, StoreLike, StorePath, make_store_path
8+
from zarr.storage import FsspecStore, LocalStore, MemoryStore, StoreLike, StorePath
9+
from zarr.storage._common import make_store_path
910
from zarr.storage._utils import normalize_path
1011

1112

0 commit comments

Comments
 (0)