Add missing asyncio functions (#6418)

These were added in https://bugs.python.org/issue32250 and https://bugs.python.org/issue32415
This commit is contained in:
Alex Waygood
2021-11-28 07:43:00 +00:00
committed by GitHub
parent 9e2cec904d
commit da8bab974a

View File

@@ -293,3 +293,7 @@ if sys.version_info >= (3, 7):
else:
def create_task(coro: Generator[_TaskYieldType, None, _T] | Awaitable[_T]) -> Task[_T]: ...
def current_task(loop: AbstractEventLoop | None = ...) -> Task[Any] | None: ...
def _enter_task(loop: AbstractEventLoop, task: Task[Any]) -> None: ...
def _leave_task(loop: AbstractEventLoop, task: Task[Any]) -> None: ...
def _register_task(task: Task[Any]) -> None: ...
def _unregister_task(task: Task[Any]) -> None: ...