Fix Future.__init__'s loop variable annotation (#2961)

This commit is contained in:
Mark Vismonte
2019-05-06 22:02:56 -04:00
committed by Jelle Zijlstra
parent fe06e8e3c5
commit e4a81132c4

View File

@@ -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):