massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stdlib / sched.pyi
1 from typing import Any, Callable, NamedTuple, Tuple
2
3 class Event(NamedTuple):
4     time: float
5     priority: Any
6     action: Callable[..., Any]
7     argument: Tuple[Any, ...]
8     kwargs: dict[str, Any]
9
10 class scheduler:
11     def __init__(self, timefunc: Callable[[], float] = ..., delayfunc: Callable[[float], None] = ...) -> None: ...
12     def enterabs(
13         self,
14         time: float,
15         priority: Any,
16         action: Callable[..., Any],
17         argument: Tuple[Any, ...] = ...,
18         kwargs: dict[str, Any] = ...,
19     ) -> Event: ...
20     def enter(
21         self,
22         delay: float,
23         priority: Any,
24         action: Callable[..., Any],
25         argument: Tuple[Any, ...] = ...,
26         kwargs: dict[str, Any] = ...,
27     ) -> Event: ...
28     def run(self, blocking: bool = ...) -> float | None: ...
29     def cancel(self, event: Event) -> None: ...
30     def empty(self) -> bool: ...
31     @property
32     def queue(self) -> list[Event]: ...