8000 correct return value of Future.set_running_or_notify_cancel (#1078) · python/typeshed@13bcc79 · GitHub
[go: up one dir, main page]

Skip to content

Commit 13bcc79

Browse files
thomasballingergvanrossum
authored andcommitted
correct return value of Future.set_running_or_notify_cancel (#1078)
1 parent ce3a76b commit 13bcc79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

third_party/2/concurrent/futures/__init__.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class Future(Generic[_T]):
1515
def exception(self, timeout: float = ...) -> Any: ...
1616
def add_done_callback(self, fn: Callable[[Future], Any]) -> None: ...
1717

18-
def set_running_or_notify_cancel(self) -> None: ...
18+
def set_running_or_notify_cancel(self) -> bool: ...
1919
def set_result(self, result: _T) -> None: ...
2020
def set_exception(self, exception: Any) -> None: ...
2121

0 commit comments

Comments
 (0)
0