diff --git a/changes/3195.bugfix.rst b/changes/3195.bugfix.rst new file mode 100644 index 0000000000..44a7ce9105 --- /dev/null +++ b/changes/3195.bugfix.rst @@ -0,0 +1 @@ +Add missing import for AsyncFileSystemWrapper for _make_async in _fsspec.py \ No newline at end of file diff --git a/src/zarr/storage/_fsspec.py b/src/zarr/storage/_fsspec.py index 4f6929456e..0d854b0561 100644 --- a/src/zarr/storage/_fsspec.py +++ b/src/zarr/storage/_fsspec.py @@ -68,7 +68,9 @@ def _make_async(fs: AbstractFileSystem) -> AsyncFileSystem: "2024.12.0 or later to enable this functionality." ) - return fsspec.implementations.asyn_wrapper.AsyncFileSystemWrapper(fs, asynchronous=True) + from fsspec.implementations.asyn_wrapper import AsyncFileSystemWrapper + + return AsyncFileSystemWrapper(fs, asynchronous=True) class FsspecStore(Store):