Use lowercase tuple where possible (#6170)

This commit is contained in:
Akuli
2021-10-15 00:18:19 +00:00
committed by GitHub
parent 5f386b0575
commit 994b69ef8f
242 changed files with 1212 additions and 1224 deletions

View File

@@ -1,4 +1,4 @@
from typing import IO, Any, Callable, Sequence, Tuple, Union
from typing import IO, Any, Callable, Sequence, Union
_Timer = Callable[[], float]
_Stmt = Union[str, Callable[[], Any]]
@@ -12,7 +12,7 @@ class Timer:
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 autorange(self, callback: Callable[[int, float], Any] | None = ...) -> Tuple[int, 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 = ...