mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
Merge pull request #44 from DanielShaulov/patch-1
Add timer class to threading.pyi
This commit is contained in:
@@ -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 : ...
|
||||
|
||||
Reference in New Issue
Block a user