mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
stdlib: add argument default values (#9501)
This commit is contained in:
@@ -11,22 +11,22 @@ default_timer: _Timer
|
||||
|
||||
class Timer:
|
||||
def __init__(
|
||||
self, stmt: _Stmt = ..., setup: _Stmt = ..., timer: _Timer = ..., globals: dict[str, Any] | None = ...
|
||||
self, stmt: _Stmt = "pass", setup: _Stmt = "pass", timer: _Timer = ..., globals: dict[str, Any] | None = 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 autorange(self, callback: Callable[[int, float], object] | None = ...) -> tuple[int, float]: ...
|
||||
def print_exc(self, file: IO[str] | None = None) -> None: ...
|
||||
def timeit(self, number: int = 1000000) -> float: ...
|
||||
def repeat(self, repeat: int = 5, number: int = 1000000) -> list[float]: ...
|
||||
def autorange(self, callback: Callable[[int, float], object] | None = None) -> tuple[int, float]: ...
|
||||
|
||||
def timeit(
|
||||
stmt: _Stmt = ..., setup: _Stmt = ..., timer: _Timer = ..., number: int = ..., globals: dict[str, Any] | None = ...
|
||||
stmt: _Stmt = "pass", setup: _Stmt = "pass", timer: _Timer = ..., number: int = 1000000, globals: dict[str, Any] | None = None
|
||||
) -> float: ...
|
||||
def repeat(
|
||||
stmt: _Stmt = ...,
|
||||
setup: _Stmt = ...,
|
||||
stmt: _Stmt = "pass",
|
||||
setup: _Stmt = "pass",
|
||||
timer: _Timer = ...,
|
||||
repeat: int = ...,
|
||||
number: int = ...,
|
||||
globals: dict[str, Any] | None = ...,
|
||||
repeat: int = 5,
|
||||
number: int = 1000000,
|
||||
globals: dict[str, Any] | None = None,
|
||||
) -> list[float]: ...
|
||||
def main(args: Sequence[str] | None = ..., *, _wrap_timer: Callable[[_Timer], _Timer] | None = ...) -> None: ...
|
||||
def main(args: Sequence[str] | None = None, *, _wrap_timer: Callable[[_Timer], _Timer] | None = None) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user