Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreamsorcerer authored Feb 2, 2025
1 parent 1d8ffe9 commit 1bfa687
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion async_lru/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,9 @@ def _make_wrapper(
typed: bool,
ttl: Optional[float] = None,
) -> Callable[[Callable[_P, Coroutine[object, object, _R]]], _LRUCacheWrapper[_P, _R]]:
def wrapper(fn: Callable[_P, Coroutine[object, object, _R]]) -> _LRUCacheWrapper[_P, _R]:
def wrapper(
fn: Callable[_P, Coroutine[object, object, _R]]
) -> _LRUCacheWrapper[_P, _R]:
origin = fn

while isinstance(origin, (partial, partialmethod)):
Expand Down

0 comments on commit 1bfa687

Please sign in to comment.