Skip to content

Commit 965f962

Browse files
author
Altay Sansal
committed
Move AsyncFileSystemWrapper import past the version check in _fsspec.py
1 parent d9f7aef commit 965f962

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
@@ -45,7 +45,6 @@ def _make_async(fs: AbstractFileSystem) -> AsyncFileSystem:
4545
is wrapped with AsyncFileSystemWrapper.
4646
"""
4747
import fsspec
48-
import fsspec.implementations.asyn_wrapper
4948

5049
fsspec_version = parse_version(fsspec.__version__)
5150
if fs.async_impl and fs.asynchronous:
@@ -69,6 +68,7 @@ def _make_async(fs: AbstractFileSystem) -> AsyncFileSystem:
6968
"2024.12.0 or later to enable this functionality."
7069
)
7170

71+
import fsspec.implementations.asyn_wrapper
7272
return fsspec.implementations.asyn_wrapper.AsyncFileSystemWrapper(fs, asynchronous=True)
7373

7474

0 commit comments

Comments
 (0)