Skip to content

Commit 1772c89

Browse files
committed
Change import structure to protect against AttributeError
1 parent 1853231 commit 1772c89

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/zarr/storage/_fsspec.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,9 @@ def _make_async(fs: AbstractFileSystem) -> AsyncFileSystem:
6262
"AsyncFileSystemWrapper is not available. Upgrade fsspec to version "
6363
"2024.12.0 or later to enable this functionality."
6464
)
65+
from fsspec.implementations.asyn_wrapper import AsyncFileSystemWrapper
6566

66-
return fsspec.implementations.asyn_wrapper.AsyncFileSystemWrapper(fs, asynchronous=True)
67+
return AsyncFileSystemWrapper(fs, asynchronous=True)
6768

6869

6970
class FsspecStore(Store):

0 commit comments

Comments
 (0)