Skip to content

Commit 264baa3

Browse files
committed
update docstring
1 parent bf2b0b1 commit 264baa3

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

src/zarr/api/asynchronous.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,7 @@ async def open(
308308
read/write (must exist); 'a' means read/write (create if doesn't
309309
exist); 'w' means create (overwrite if exists); 'w-' means create
310310
(fail if exists).
311+
If the store is read-only, the default is 'r'; otherwise, it is 'a'.
311312
zarr_format : {2, 3, None}, optional
312313
The zarr format to use when saving.
313314
path : str or None, optional

src/zarr/api/synchronous.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ def open(
176176
read/write (must exist); 'a' means read/write (create if doesn't
177177
exist); 'w' means create (overwrite if exists); 'w-' means create
178178
(fail if exists).
179+
If the store is read-only, the default is 'r'; otherwise, it is 'a'.
179180
zarr_format : {2, 3, None}, optional
180181
The zarr format to use when saving.
181182
path : str or None, optional

0 commit comments

Comments
 (0)