mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
Big diff: use lower-case list and dict (#5888)
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
from typing import Any, Callable, Dict, List, NamedTuple, Tuple
|
||||
from typing import Any, Callable, NamedTuple, Tuple
|
||||
|
||||
class Event(NamedTuple):
|
||||
time: float
|
||||
priority: Any
|
||||
action: Callable[..., Any]
|
||||
argument: Tuple[Any, ...]
|
||||
kwargs: Dict[str, Any]
|
||||
kwargs: dict[str, Any]
|
||||
|
||||
class scheduler:
|
||||
def __init__(self, timefunc: Callable[[], float] = ..., delayfunc: Callable[[float], None] = ...) -> None: ...
|
||||
@@ -15,7 +15,7 @@ class scheduler:
|
||||
priority: Any,
|
||||
action: Callable[..., Any],
|
||||
argument: Tuple[Any, ...] = ...,
|
||||
kwargs: Dict[str, Any] = ...,
|
||||
kwargs: dict[str, Any] = ...,
|
||||
) -> Event: ...
|
||||
def enter(
|
||||
self,
|
||||
@@ -23,10 +23,10 @@ class scheduler:
|
||||
priority: Any,
|
||||
action: Callable[..., Any],
|
||||
argument: Tuple[Any, ...] = ...,
|
||||
kwargs: Dict[str, 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]: ...
|
||||
def queue(self) -> list[Event]: ...
|
||||
|
||||
Reference in New Issue
Block a user