From 25ae5b887194a0b6178bc7eeeb0ab6db6a4dcd4c Mon Sep 17 00:00:00 2001 From: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> Date: Wed, 29 Sep 2021 17:37:09 +0530 Subject: [PATCH] Add __await__, name, qualname to CoroutineType (#6087) --- stdlib/types.pyi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stdlib/types.pyi b/stdlib/types.pyi index 7cd99a429..26d8263ea 100644 --- a/stdlib/types.pyi +++ b/stdlib/types.pyi @@ -212,11 +212,14 @@ class AsyncGeneratorType(AsyncGenerator[_T_co, _T_contra]): @final class CoroutineType: + __name__: str + __qualname__: str cr_await: Any | None cr_code: CodeType cr_frame: FrameType cr_running: bool def close(self) -> None: ... + def __await__(self) -> Generator[Any, None, Any]: ... def send(self, __arg: Any) -> Any: ... @overload def throw(self, __typ: Type[BaseException], __val: BaseException | object = ..., __tb: TracebackType | None = ...) -> Any: ...