Big diff: use lower-case list and dict (#5888)

This commit is contained in:
Akuli
2021-08-08 19:26:35 +03:00
committed by GitHub
parent 11f54c3407
commit ce11072dbe
325 changed files with 2196 additions and 2334 deletions

View File

@@ -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]: ...