Skip to content

Commit c73d463

Browse files
PyRight uses CoroutineType
1 parent 4b6d933 commit c73d463

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

asyncstdlib/_lrucache.pyi

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ from typing import (
99
overload,
1010
Protocol,
1111
)
12+
from types import CoroutineType
1213
from typing_extensions import ParamSpec, Concatenate
1314

1415
from ._typing import AC, TypedDict
@@ -42,6 +43,12 @@ class LRUAsyncCallable(Protocol[AC]):
4243
owner: type | None = ...,
4344
) -> LRUAsyncBoundCallable[S, P, R]: ...
4445
@overload
46+
def __get__(
47+
self: LRUAsyncCallable[Callable[Concatenate[S, P], CoroutineType[Any, Any, R]]],
48+
instance: S,
49+
owner: type | None = ...,
50+
) -> LRUAsyncBoundCallable[S, P, R]: ...
51+
@overload
4552
def __get__(
4653
self: LRUAsyncCallable[Callable[Concatenate[S, P], Awaitable[R]]],
4754
instance: S,

0 commit comments

Comments
 (0)