Add default timeout for Condition.wait_for (#1726)

Fixes:

- Too few arguments for "wait_for" of "Condition"

when timeout is not specified.
This commit is contained in:
Josh Staiger
2017-11-09 10:12:33 -08:00
committed by Jelle Zijlstra
parent 54dd6ba27c
commit fd25e534ad

View File

@@ -123,7 +123,7 @@ class Condition:
def wait(self, timeout: Optional[float] = ...) -> bool: ...
if sys.version_info >= (3,):
def wait_for(self, predicate: Callable[[], _T],
timeout: Optional[float]) -> _T: ...
timeout: Optional[float] = ...) -> _T: ...
def notify(self, n: int = ...) -> None: ...
def notify_all(self) -> None: ...
def notifyAll(self) -> None: ...