We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 264baa3 commit e050f7aCopy full SHA for e050f7a
1 file changed
src/zarr/api/asynchronous.py
@@ -41,6 +41,7 @@
41
from zarr.core.metadata import ArrayMetadataDict, ArrayV2Metadata, ArrayV3Metadata
42
from zarr.core.metadata.v2 import _default_compressor, _default_filters
43
from zarr.errors import GroupNotFoundError, NodeTypeValidationError
44
+from zarr.storage import StorePath
45
from zarr.storage._common import make_store_path
46
47
if TYPE_CHECKING:
@@ -327,7 +328,7 @@ async def open(
327
328
"""
329
zarr_format = _handle_zarr_version_or_format(zarr_version=zarr_version, zarr_format=zarr_format)
330
if mode is None:
- if isinstance(store, Store) and store.read_only:
331
+ if isinstance(store, (Store, StorePath)) and store.read_only:
332
mode = "r"
333
else:
334
mode = "a"
0 commit comments