mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-01 00:53:23 +08:00
Add Async classes to typing stub.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from typing import Any, TypeVar, List, Callable, Tuple, Union, Dict
|
||||
from typing import Any, Awaitable, TypeVar, List, Callable, Tuple, Union, Dict
|
||||
from abc import ABCMeta, abstractmethod
|
||||
from asyncio.futures import Future
|
||||
|
||||
@@ -34,7 +34,7 @@ class AbstractEventLoop(metaclass=ABCMeta):
|
||||
@abstractmethod
|
||||
def run_forever(self) -> None: ...
|
||||
@abstractmethod
|
||||
def run_until_complete(self, future: Future[_T]) -> _T: ...
|
||||
def run_until_complete(self, future: Union[Awaitable[_T], Future[_T]]) -> _T: ...
|
||||
@abstractmethod
|
||||
def stop(self) -> None: ...
|
||||
@abstractmethod
|
||||
|
||||
Reference in New Issue
Block a user