From 1b24d80087da48bd735486ff1928636175b460b3 Mon Sep 17 00:00:00 2001 From: Sander Voerman Date: Sun, 9 Dec 2018 21:37:37 +0100 Subject: [PATCH] Add get_loop() to asyncio.Future [Python 3.7] (#2680) --- stdlib/3/asyncio/futures.pyi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stdlib/3/asyncio/futures.pyi b/stdlib/3/asyncio/futures.pyi index 034a9c908..4ceaa84f9 100644 --- a/stdlib/3/asyncio/futures.pyi +++ b/stdlib/3/asyncio/futures.pyi @@ -35,6 +35,8 @@ class Future(Awaitable[_T], Iterable[_T]): def __init__(self, *, loop: AbstractEventLoop = ...) -> None: ... def __repr__(self) -> str: ... def __del__(self) -> None: ... + if sys.version_info >= (3, 7): + def get_loop(self) -> AbstractEventLoop: ... def cancel(self) -> bool: ... def _schedule_callbacks(self) -> None: ... def cancelled(self) -> bool: ...