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,4 +1,4 @@
from typing import IO, Any, Callable, Dict, List, Sequence, Tuple, Union
from typing import IO, Any, Callable, Sequence, Tuple, Union
_Timer = Callable[[], float]
_Stmt = Union[str, Callable[[], Any]]
@@ -7,15 +7,15 @@ default_timer: _Timer
class Timer:
def __init__(
self, stmt: _Stmt = ..., setup: _Stmt = ..., timer: _Timer = ..., globals: Dict[str, Any] | None = ...
self, stmt: _Stmt = ..., setup: _Stmt = ..., timer: _Timer = ..., globals: dict[str, Any] | None = ...
) -> None: ...
def print_exc(self, file: IO[str] | None = ...) -> None: ...
def timeit(self, number: int = ...) -> float: ...
def repeat(self, repeat: int = ..., number: int = ...) -> List[float]: ...
def repeat(self, repeat: int = ..., number: int = ...) -> list[float]: ...
def autorange(self, callback: Callable[[int, float], Any] | None = ...) -> Tuple[int, float]: ...
def timeit(
stmt: _Stmt = ..., setup: _Stmt = ..., timer: _Timer = ..., number: int = ..., globals: Dict[str, Any] | None = ...
stmt: _Stmt = ..., setup: _Stmt = ..., timer: _Timer = ..., number: int = ..., globals: dict[str, Any] | None = ...
) -> float: ...
def repeat(
stmt: _Stmt = ...,
@@ -23,8 +23,8 @@ def repeat(
timer: _Timer = ...,
repeat: int = ...,
number: int = ...,
globals: Dict[str, Any] | None = ...,
) -> List[float]: ...
globals: dict[str, Any] | None = ...,
) -> list[float]: ...
_timerFunc = Callable[[], float]