diff --git a/stdlib/asyncio/tasks.pyi b/stdlib/asyncio/tasks.pyi index 0ff0e3895..c306e9655 100644 --- a/stdlib/asyncio/tasks.pyi +++ b/stdlib/asyncio/tasks.pyi @@ -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]: ...