From 1693cf7f411205a24d2e8c64e7e8075ef84d1205 Mon Sep 17 00:00:00 2001 From: Nils-Arne Dreier Date: Thu, 17 Apr 2025 12:37:25 +0200 Subject: [PATCH] fix: wrap the fsspec fs in an AsyncWrapper also if it is called with asynchronouos=False --- src/zarr/storage/_fsspec.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zarr/storage/_fsspec.py b/src/zarr/storage/_fsspec.py index a4730a93d9..cacaf9579f 100644 --- a/src/zarr/storage/_fsspec.py +++ b/src/zarr/storage/_fsspec.py @@ -94,7 +94,7 @@ def __init__( self.path = path self.allowed_exceptions = allowed_exceptions - if not self.fs.async_impl: + if not self.fs.async_impl or not self.fs.asynchronous: raise TypeError("Filesystem needs to support async operations.") if not self.fs.asynchronous: warnings.warn(