Skip to content

Commit b782704

Browse files
Apply suggestions from code review
Co-authored-by: Martin Durant <[email protected]>
1 parent 28f8420 commit b782704

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/zarr/storage/_common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ async def make_store_path(
320320
# We deliberate only consider dict[str, Buffer] here, and not arbitrary mutable mappings.
321321
# By only allowing dictionaries, which are in-memory, we know that MemoryStore appropriate.
322322
store = await MemoryStore.open(store_dict=store_like, read_only=_read_only)
323-
elif _has_fsspec:
323+
elif _has_fsspec and isinstance(store_like, FSMap):
324324
if not isinstance(store_like, FSMap):
325325
raise (TypeError(f"Unsupported type for store_like: '{type(store_like).__name__}'"))
326326
if path:

0 commit comments

Comments
 (0)