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 6ad144d commit 8d633d2Copy full SHA for 8d633d2
src/zarr/storage/_local.py
@@ -51,6 +51,7 @@ def _put(
51
if start is not None:
52
with path.open("r+b") as f:
53
f.seek(start)
54
+ # write takes any object supporting the buffer protocol
55
f.write(value.as_numpy_array()) # type: ignore[arg-type]
56
return None
57
else:
@@ -60,6 +61,7 @@ def _put(
60
61
62
mode = "wb"
63
with path.open(mode=mode) as f:
64
65
return f.write(view)
66
67
0 commit comments