diff --git a/fsspec/dircache.py b/fsspec/dircache.py index 90b66f893..ae88464fe 100644 --- a/fsspec/dircache.py +++ b/fsspec/dircache.py @@ -1,8 +1,8 @@ from __future__ import annotations -import time -from typing import MutableMapping, List, TypedDict, Iterator, Any +import time from functools import lru_cache +from typing import Any, Iterator, List, MutableMapping, TypedDict class DirEntry(TypedDict): diff --git a/fsspec/mapping.py b/fsspec/mapping.py index be9346f3a..a8bbaa7e4 100644 --- a/fsspec/mapping.py +++ b/fsspec/mapping.py @@ -1,19 +1,19 @@ from __future__ import annotations + +import array +import posixpath +import warnings +from functools import cached_property from typing import ( TYPE_CHECKING, - MutableMapping, - Literal, Iterable, Iterator, - overload, + Literal, + MutableMapping, TypeVar, + overload, ) -import array -import posixpath -import warnings -from functools import cached_property - from .core import url_to_fs if TYPE_CHECKING: @@ -114,7 +114,7 @@ def getitems( self, keys: Iterable[str], on_error: Literal["raise", "omit", "return"] = "raise", - ) -> dict[str, bytes | Exception] | dict[str, bytes]: + ) -> dict[str, bytes | Exception] | dict[str, bytes]: """Fetch multiple items from the store If the backend is async-able, this might proceed concurrently