We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b44cd29 commit 01d4a4cCopy full SHA for 01d4a4c
stdlib/3/asyncio/futures.pyi
@@ -51,7 +51,7 @@ class Future(Awaitable[_T], Iterable[_T]):
51
def cancelled(self) -> bool: ...
52
def done(self) -> bool: ...
53
def result(self) -> _T: ...
54
- def exception(self) -> BaseException: ...
+ def exception(self) -> Optional[BaseException]: ...
55
def remove_done_callback(self: _S, fn: Callable[[_S], Any]) -> int: ...
56
def set_result(self, result: _T) -> None: ...
57
def set_exception(self, exception: Union[type, BaseException]) -> None: ...
0 commit comments