Add __name__ & __qualname__ to Coroutine (#4404)

This commit is contained in:
Ian Woloschin
2020-08-10 23:44:14 -04:00
committed by GitHub
parent 0ee7b26ce1
commit 5c049cd136

View File

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