From d43639d289d60ed90b7a649d1774c4f34d022769 Mon Sep 17 00:00:00 2001 From: Nikita Sobolev Date: Thu, 27 Jan 2022 23:46:43 +0300 Subject: [PATCH] Improve `asyncio.Future` type (#7058) --- stdlib/asyncio/futures.pyi | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/stdlib/asyncio/futures.pyi b/stdlib/asyncio/futures.pyi index 3ec16f288..d9cfccbc7 100644 --- a/stdlib/asyncio/futures.pyi +++ b/stdlib/asyncio/futures.pyi @@ -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):