diff --git a/asyncstdlib/_lrucache.pyi b/asyncstdlib/_lrucache.pyi index 59b12bd..c5fc40e 100644 --- a/asyncstdlib/_lrucache.pyi +++ b/asyncstdlib/_lrucache.pyi @@ -3,6 +3,7 @@ from typing import ( Any, Awaitable, Callable, + Coroutine, Generic, NamedTuple, overload, @@ -35,6 +36,12 @@ class LRUAsyncCallable(Protocol[AC]): self: LRUAsyncCallable[AC], instance: None, owner: type | None = ... ) -> LRUAsyncCallable[AC]: ... @overload + def __get__( + self: LRUAsyncCallable[Callable[Concatenate[S, P], Coroutine[Any, Any, R]]], + instance: S, + owner: type | None = ..., + ) -> LRUAsyncBoundCallable[S, P, R]: ... + @overload def __get__( self: LRUAsyncCallable[Callable[Concatenate[S, P], Awaitable[R]]], instance: S,