Skip to content

Commit

Permalink
Move import to the top
Browse files Browse the repository at this point in the history
  • Loading branch information
moradology committed Dec 4, 2024
1 parent 18bc6f7 commit ab52b8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zarr/storage/remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import warnings
from typing import TYPE_CHECKING, Any

from fsspec.implementations.asyn_wrapper import AsyncFileSystemWrapper
from zarr.abc.store import ByteRangeRequest, Store
from zarr.storage.common import _dereference_path

Expand Down Expand Up @@ -167,7 +168,6 @@ def from_url(

fs, path = url_to_fs(url, **opts)
if not fs.async_impl:
from fsspec.implementations.asyn_wrapper import AsyncFileSystemWrapper
fs = AsyncFileSystemWrapper(fs)

# fsspec is not consistent about removing the scheme from the path, so check and strip it here
Expand Down

0 comments on commit ab52b8c

Please sign in to comment.