From b325815f44f0e9a3658919871238962d2a7f4240 Mon Sep 17 00:00:00 2001 From: Sam Bull Date: Mon, 24 Jul 2023 22:49:13 +0100 Subject: [PATCH] Fix type of Future._exception (#10502) --- stdlib/asyncio/futures.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/asyncio/futures.pyi b/stdlib/asyncio/futures.pyi index 79209f5ed4fb..af05425d02a2 100644 --- a/stdlib/asyncio/futures.pyi +++ b/stdlib/asyncio/futures.pyi @@ -31,7 +31,7 @@ def isfuture(obj: object) -> TypeGuard[Future[Any]]: ... class Future(Awaitable[_T], Iterable[_T]): _state: str @property - def _exception(self) -> BaseException: ... + def _exception(self) -> BaseException | None: ... _blocking: bool @property def _log_traceback(self) -> bool: ...