From fe06e8e3c5b7b52cc67228fcdd3fe1901887440e Mon Sep 17 00:00:00 2001 From: Mark Vismonte Date: Mon, 6 May 2019 22:00:40 -0400 Subject: [PATCH] Add annotation to Future._loop (#2959) --- 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 f87259fe1..3c348c4cb 100644 --- a/stdlib/3/asyncio/futures.pyi +++ b/stdlib/3/asyncio/futures.pyi @@ -50,5 +50,7 @@ class Future(Awaitable[_T], Iterable[_T]): def _copy_state(self, other: Any) -> None: ... def __iter__(self) -> Generator[Any, None, _T]: ... def __await__(self) -> Generator[Any, None, _T]: ... + @property + def _loop(self) -> AbstractEventLoop: ... def wrap_future(f: Union[_ConcurrentFuture[_T], Future[_T]]) -> Future[_T]: ...