mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-05 19:58:49 +08:00
Add __name__ & __qualname__ to Coroutine (#4404)
This commit is contained in:
1 parent
0ee7b26ce1
commit
5c049cd136
1 file changed
+2
@@ -196,6 +196,8 @@ class Awaitable(Protocol[_T_co]):
|
||||
def __await__(self) -> Generator[Any, None, _T_co]: ...
|
||||
|
||||
class Coroutine(Awaitable[_V_co], Generic[_T_co, _T_contra, _V_co]):
|
||||
__name__: str
|
||||
__qualname__: str
|
||||
@property
|
||||
def cr_await(self) -> Optional[Any]: ...
|
||||
@property
|
||||
|
||||
Reference in new issue
Block a user