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 480d21a commit b339f56Copy full SHA for b339f56
zarr/core.py
@@ -1821,7 +1821,7 @@ def _encode_chunk(self, chunk):
1821
cdata = chunk
1822
1823
# ensure in-memory data is immutable and easy to compare
1824
- if isinstance(self.chunk_store, dict):
+ if isinstance(self.chunk_store, MutableMapping):
1825
cdata = ensure_bytes(cdata)
1826
1827
return cdata
zarr/storage.py
@@ -176,7 +176,7 @@ def getsize(store, path: Path = None) -> int:
176
if hasattr(store, 'getsize'):
177
# pass through
178
return store.getsize(path)
179
- elif isinstance(store, dict):
+ elif isinstance(store, MutableMapping):
180
# compute from size of values
181
if path in store:
182
v = store[path]
0 commit comments