Add __await__, name, qualname to CoroutineType (#6087)

This commit is contained in:
Kumar Aditya
2021-09-29 17:37:09 +05:30
committed by GitHub
parent 9efd6521be
commit 25ae5b8871

View File

@@ -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: ...