-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Expand file tree
/
Copy pathfutures.pyi
More file actions
19 lines (14 loc) · 721 Bytes
/
futures.pyi
File metadata and controls
19 lines (14 loc) · 721 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import sys
from _asyncio import Future as Future
from concurrent.futures._base import Future as _ConcurrentFuture
from typing import TypeVar
from .base_futures import isfuture as isfuture
from .events import AbstractEventLoop
# Keep asyncio.__all__ updated with any changes to __all__ here
if sys.version_info >= (3, 14):
from _asyncio import future_add_to_awaited_by, future_discard_from_awaited_by
__all__ = ("Future", "wrap_future", "isfuture", "future_discard_from_awaited_by", "future_add_to_awaited_by")
else:
__all__ = ("Future", "wrap_future", "isfuture")
_T = TypeVar("_T")
def wrap_future(future: _ConcurrentFuture[_T] | Future[_T], *, loop: AbstractEventLoop | None = None) -> Future[_T]: ...