correct return value of Future.set_running_or_notify_cancel (#1078)

This commit is contained in:
Thomas Ballinger
2017-03-22 16:59:07 -07:00
committed by Guido van Rossum
parent ce3a76bb97
commit 13bcc79c12

View File

@@ -15,7 +15,7 @@ class Future(Generic[_T]):
def exception(self, timeout: float = ...) -> Any: ...
def add_done_callback(self, fn: Callable[[Future], Any]) -> None: ...
def set_running_or_notify_cancel(self) -> None: ...
def set_running_or_notify_cancel(self) -> bool: ...
def set_result(self, result: _T) -> None: ...
def set_exception(self, exception: Any) -> None: ...