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 bbdefac commit 2107655Copy full SHA for 2107655
src/zarr/storage/_zip.py
@@ -90,6 +90,16 @@ def __init__(
90
self.compression = compression
91
self.allowZip64 = allowZip64
92
93
+ def with_read_only(self, read_only: bool = False) -> ZipStore:
94
+ # docstring inherited
95
+ return type(self)(
96
+ path=self.path,
97
+ mode='r',
98
+ read_only=read_only,
99
+ compression=self.compression,
100
+ allowZip64=self.allowZip64,
101
+ )
102
+
103
def _sync_open(self) -> None:
104
if self._is_open:
105
raise ValueError("store is already open")
0 commit comments