Add annotation to Future._loop (#2959)

This commit is contained in:
Mark Vismonte
2019-05-06 22:00:40 -04:00
committed by Jelle Zijlstra
parent 7c475a48d7
commit fe06e8e3c5

View File

@@ -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]: ...