From e4a81132c4f848760bffa025e3d198019f716f38 Mon Sep 17 00:00:00 2001 From: Mark Vismonte Date: Mon, 6 May 2019 22:02:56 -0400 Subject: [PATCH] Fix Future.__init__'s loop variable annotation (#2961) --- stdlib/3/asyncio/futures.pyi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stdlib/3/asyncio/futures.pyi b/stdlib/3/asyncio/futures.pyi index 3c348c4cb..2db882aa9 100644 --- a/stdlib/3/asyncio/futures.pyi +++ b/stdlib/3/asyncio/futures.pyi @@ -1,5 +1,5 @@ import sys -from typing import Any, Union, Callable, TypeVar, Type, List, Generic, Iterable, Generator, Awaitable +from typing import Any, Union, Callable, TypeVar, Type, List, Generic, Iterable, Generator, Awaitable, Optional from .events import AbstractEventLoop from concurrent.futures import ( CancelledError as CancelledError, @@ -32,7 +32,7 @@ class Future(Awaitable[_T], Iterable[_T]): _blocking = False _log_traceback = False _tb_logger: Type[_TracebackLogger] - def __init__(self, *, loop: AbstractEventLoop = ...) -> None: ... + def __init__(self, *, loop: Optional[AbstractEventLoop] = ...) -> None: ... def __repr__(self) -> str: ... def __del__(self) -> None: ... if sys.version_info >= (3, 7):