mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-15 16:27:08 +08:00
correct return value of Future.set_running_or_notify_cancel (#1078)
This commit is contained in:
committed by
Guido van Rossum
parent
ce3a76bb97
commit
13bcc79c12
@@ -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: ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user