mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-27 05:12:10 +08:00
Use lowercase tuple where possible (#6170)
This commit is contained in:
@@ -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 = ...
|
||||
|
||||
Reference in New Issue
Block a user