mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-07-29 11:16:44 +08:00
[stdlib] Add default values part 2 (#14769)
This commit is contained in:
+4
-1
@@ -1,4 +1,5 @@
|
||||
import sys
|
||||
import time
|
||||
from collections.abc import Callable
|
||||
from typing import Any, ClassVar, NamedTuple, type_check_only
|
||||
from typing_extensions import TypeAlias
|
||||
@@ -32,7 +33,9 @@ class scheduler:
|
||||
timefunc: Callable[[], float]
|
||||
delayfunc: Callable[[float], object]
|
||||
|
||||
def __init__(self, timefunc: Callable[[], float] = ..., delayfunc: Callable[[float], object] = ...) -> None: ...
|
||||
def __init__(
|
||||
self, timefunc: Callable[[], float] = time.monotonic, delayfunc: Callable[[float], object] = time.sleep
|
||||
) -> None: ...
|
||||
def enterabs(
|
||||
self, time: float, priority: Any, action: _ActionCallback, argument: tuple[Any, ...] = (), kwargs: dict[str, Any] = ...
|
||||
) -> Event: ...
|
||||
|
||||
Reference in New Issue
Block a user