File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -321,8 +321,6 @@ async def make_store_path(
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 )
323323 elif _has_fsspec and isinstance (store_like , FSMap ):
324- if not isinstance (store_like , FSMap ):
325- raise (TypeError (f"Unsupported type for store_like: '{ type (store_like ).__name__ } '" ))
326324 if path :
327325 raise ValueError ("'path' was provided but is not used for FSMap store_like objects" )
328326 if storage_options :
@@ -331,7 +329,7 @@ async def make_store_path(
331329 )
332330 store = FsspecStore .from_mapper (store_like , read_only = _read_only )
333331 else :
334- raise ( TypeError (f"Unsupported type for store_like: '{ type (store_like ).__name__ } '" ) )
332+ raise TypeError (f"Unsupported type for store_like: '{ type (store_like ).__name__ } '" )
335333
336334 result = await StorePath .open (store , path = path_normalized , mode = mode )
337335
You can’t perform that action at this time.
0 commit comments