mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-03 16:33:49 +08:00
1 parent
625ea80a99
commit
55dc338bbf
2 files changed
+4
No files matched your search
@@ -41,6 +41,7 @@ from asyncio.futures import (
|
||||
CancelledError as CancelledError,
|
||||
TimeoutError as TimeoutError,
|
||||
InvalidStateError as InvalidStateError,
|
||||
wrap_future as wrap_future,
|
||||
)
|
||||
from asyncio.tasks import (
|
||||
FIRST_COMPLETED as FIRST_COMPLETED,
|
||||
|
||||
@@ -6,6 +6,7 @@ from concurrent.futures._base import (
|
||||
from concurrent.futures import (
|
||||
CancelledError as CancelledError,
|
||||
TimeoutError as TimeoutError,
|
||||
Future as ConcurrentFuture,
|
||||
)
|
||||
|
||||
__all__ = ... # type: str
|
||||
@@ -44,3 +45,5 @@ class Future(Iterable[_T], Awaitable[_T], Generic[_T]):
|
||||
def _copy_state(self, other: Any) -> None: ...
|
||||
def __iter__(self) -> Generator[Any, None, _T]: ...
|
||||
def __await__(self) -> Generator[Any, None, _T]: ...
|
||||
|
||||
def wrap_future(f: Union[ConcurrentFuture[_T], Future[_T]]) -> Future[_T]: ...
|
||||
Reference in new issue
Block a user