Fix type of Future._exception (#10502)

This commit is contained in:
Sam Bull
2023-07-24 22:49:13 +01:00
committed by GitHub
parent 21cb2cb546
commit b325815f44

View File

@@ -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: ...