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 7d0b62d commit 4bc70bdCopy full SHA for 4bc70bd
src/zarr/storage/_memory.py
@@ -5,6 +5,7 @@
5
6
from zarr.abc.store import ByteRequest, Store
7
from zarr.core.buffer import Buffer, gpu
8
+from zarr.core.buffer.core import default_buffer_prototype
9
from zarr.core.common import concurrent_map
10
from zarr.storage._utils import _normalize_byte_range_index
11
@@ -79,10 +80,12 @@ def __eq__(self, other: object) -> bool:
79
80
async def get(
81
self,
82
key: str,
- prototype: BufferPrototype,
83
+ prototype: BufferPrototype | None = None,
84
byte_range: ByteRequest | None = None,
85
) -> Buffer | None:
86
# docstring inherited
87
+ if prototype is None:
88
+ prototype = default_buffer_prototype()
89
if not self._is_open:
90
await self._open()
91
assert isinstance(key, str)
0 commit comments