From 13bcc79c12496b324ac1501c6986996eb9ececb5 Mon Sep 17 00:00:00 2001 From: Thomas Ballinger Date: Wed, 22 Mar 2017 16:59:07 -0700 Subject: [PATCH] correct return value of Future.set_running_or_notify_cancel (#1078) --- third_party/2/concurrent/futures/__init__.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/third_party/2/concurrent/futures/__init__.pyi b/third_party/2/concurrent/futures/__init__.pyi index bbec6ad67..49c0de6e2 100644 --- a/third_party/2/concurrent/futures/__init__.pyi +++ b/third_party/2/concurrent/futures/__init__.pyi @@ -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: ...