massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stdlib / sched.pyi
diff --git a/.config/coc/extensions/node_modules/coc-pyright/node_modules/pyright/dist/typeshed-fallback/stdlib/sched.pyi b/.config/coc/extensions/node_modules/coc-pyright/node_modules/pyright/dist/typeshed-fallback/stdlib/sched.pyi
new file mode 100644 (file)
index 0000000..cb96dc2
--- /dev/null
@@ -0,0 +1,32 @@
+from typing import Any, Callable, NamedTuple, Tuple
+
+class Event(NamedTuple):
+    time: float
+    priority: Any
+    action: Callable[..., Any]
+    argument: Tuple[Any, ...]
+    kwargs: dict[str, Any]
+
+class scheduler:
+    def __init__(self, timefunc: Callable[[], float] = ..., delayfunc: Callable[[float], None] = ...) -> None: ...
+    def enterabs(
+        self,
+        time: float,
+        priority: Any,
+        action: Callable[..., Any],
+        argument: Tuple[Any, ...] = ...,
+        kwargs: dict[str, Any] = ...,
+    ) -> Event: ...
+    def enter(
+        self,
+        delay: float,
+        priority: Any,
+        action: Callable[..., Any],
+        argument: Tuple[Any, ...] = ...,
+        kwargs: dict[str, Any] = ...,
+    ) -> Event: ...
+    def run(self, blocking: bool = ...) -> float | None: ...
+    def cancel(self, event: Event) -> None: ...
+    def empty(self) -> bool: ...
+    @property
+    def queue(self) -> list[Event]: ...