Improve asyncio.Future type (#7058)

This commit is contained in:
Nikita Sobolev
2022-01-27 23:46:43 +03:00
committed by GitHub
parent 0e185f4087
commit d43639d289

View File

@@ -31,8 +31,9 @@ def isfuture(obj: object) -> bool: ...
class Future(Awaitable[_T], Iterable[_T]):
_state: str
_exception: BaseException
_blocking = False
_log_traceback = False
_blocking: bool
_log_traceback: bool
_asyncio_future_blocking: bool # is a part of duck-typing contract for `Future`
def __init__(self, *, loop: AbstractEventLoop | None = ...) -> None: ...
def __del__(self) -> None: ...
if sys.version_info >= (3, 7):