Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreamsorcerer committed Jul 25, 2023
1 parent 67d0c99 commit 79cc7e0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion async_lru/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
overload,
)


if sys.version_info >= (3, 10):
from typing import ParamSpec
else:
Expand Down Expand Up @@ -346,7 +347,9 @@ def alru_cache(
typed: bool = False,
*,
ttl: Optional[float] = None,
) -> Union[Callable[[_CBP[_P, _R]], _LRUCacheWrapper[_P, _R]], _LRUCacheWrapper[_P, _R]]:
) -> Union[
Callable[[_CBP[_P, _R]], _LRUCacheWrapper[_P, _R]], _LRUCacheWrapper[_P, _R]
]:
if maxsize is None or isinstance(maxsize, int):
return _make_wrapper(maxsize, typed, ttl)
else:
Expand Down
1 change: 1 addition & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

from async_lru import _LRUCacheWrapper


_T = TypeVar("_T")
_P = ParamSpec("_P")

Expand Down

0 comments on commit 79cc7e0

Please sign in to comment.