From a972a8db73c9b8e9dba74d59c13b906c0667f9c7 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Sun, 21 Oct 2018 13:56:52 +0200 Subject: [PATCH] Add cr_await, cr_code, cr_frame and cr_running to Coroutine (#2530) --- stdlib/3/typing.pyi | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/stdlib/3/typing.pyi b/stdlib/3/typing.pyi index 4053faf13..d99daeaff 100644 --- a/stdlib/3/typing.pyi +++ b/stdlib/3/typing.pyi @@ -163,6 +163,15 @@ 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]): + @property + def cr_await(self) -> Optional[Any]: ... + @property + def cr_code(self) -> CodeType: ... + @property + def cr_frame(self) -> FrameType: ... + @property + def cr_running(self) -> bool: ... + @abstractmethod def send(self, value: _T_contra) -> _T_co: ...