mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 21:14:48 +08:00
add asyncio.Task.get_coro return type (#5536)
This commit is contained in:
@@ -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]: ...
|
||||
|
||||
Reference in New Issue
Block a user