Skip to content

Commit 1693cf7

Browse files
author
Nils-Arne Dreier
committed
fix: wrap the fsspec fs in an AsyncWrapper also if it is called with asynchronouos=False
1 parent 5f49d24 commit 1693cf7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/zarr/storage/_fsspec.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def __init__(
9494
self.path = path
9595
self.allowed_exceptions = allowed_exceptions
9696

97-
if not self.fs.async_impl:
97+
if not self.fs.async_impl or not self.fs.asynchronous:
9898
raise TypeError("Filesystem needs to support async operations.")
9999
if not self.fs.asynchronous:
100100
warnings.warn(

0 commit comments

Comments
 (0)