Skip to content

Commit d04934d

Browse files
committed
use path in with_mode for memorystore
1 parent 0c7ab00 commit d04934d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/zarr/storage/memory.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ async def clear(self) -> None:
6767

6868
def with_mode(self, mode: AccessModeLiteral) -> Self:
6969
# docstring inherited
70-
return type(self)(store_dict=self._store_dict, mode=mode)
70+
return type(self)(store_dict=self._store_dict, mode=mode, path=self.path)
7171

7272
def __str__(self) -> str:
7373
return f"memory://{id(self._store_dict)}"

0 commit comments

Comments
 (0)