add asyncio.Task.get_coro return type (#5536)

This commit is contained in:
Thomas Grainger
2021-05-27 10:04:20 +01:00
committed by GitHub
parent c4da3757d7
commit 0a73982318

View File

@@ -285,7 +285,7 @@ class Task(Future[_T], Generic[_T]):
) -> None: ...
def __repr__(self) -> str: ...
if sys.version_info >= (3, 8):
def get_coro(self) -> Any: ...
def get_coro(self) -> Union[Generator[_TaskYieldType, None, _T], Awaitable[_T]]: ...
def get_name(self) -> str: ...
def set_name(self, __value: object) -> None: ...
def get_stack(self, *, limit: Optional[int] = ...) -> List[FrameType]: ...