Merge pull request #44 from DanielShaulov/patch-1

Add timer class to threading.pyi
This commit is contained in:
Guido van Rossum
2016-01-15 08:29:56 -08:00

View File

@@ -54,3 +54,8 @@ class Condition:
def wait_for(self, predicate: Callable[[], _T], timeout: float = ...) -> Union[_T, bool]: ...
def __enter__(self) -> bool: ...
def __exit__(self, *args): ...
class Timer(Thread):
def __init__(self, interval: float, function: Callable[..., Any],
args: Any = ..., kwargs: Dict[Any, Any] = ...) -> None: ...
def cancel(self) -> None : ...