mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-20 00:28:28 +08:00
Flake8 fixes (#2549)
* Fix over-indented continuation lines * Fix under-indented continuation lines * Fix whitespace around default operator problems * Limit line lengths * Fix inconsistent files
This commit is contained in:
committed by
Jelle Zijlstra
parent
f362cf47fa
commit
006a79220f
@@ -12,7 +12,7 @@ default_timer = ... # type: _Timer
|
||||
class Timer:
|
||||
if sys.version_info >= (3, 5):
|
||||
def __init__(self, stmt: _stmt = ..., setup: _stmt = ..., timer: _Timer = ...,
|
||||
globals: Optional[Dict[str, Any]] =...) -> None: ...
|
||||
globals: Optional[Dict[str, Any]] = ...) -> None: ...
|
||||
else:
|
||||
def __init__(self, stmt: _stmt = ..., setup: _stmt = ..., timer: _Timer = ...) -> None: ...
|
||||
def print_exc(self, file: Optional[IO[str]] = ...) -> None: ...
|
||||
@@ -23,9 +23,9 @@ class Timer:
|
||||
|
||||
if sys.version_info >= (3, 5):
|
||||
def timeit(stmt: _stmt = ..., setup: _stmt = ..., timer: _Timer = ...,
|
||||
number: int = ..., globals: Optional[Dict[str, Any]] =...) -> float: ...
|
||||
number: int = ..., globals: Optional[Dict[str, Any]] = ...) -> float: ...
|
||||
def repeat(stmt: _stmt = ..., setup: _stmt = ..., timer: _Timer = ...,
|
||||
repeat: int = ..., number: int = ..., globals: Optional[Dict[str, Any]] =...) -> List[float]: ...
|
||||
repeat: int = ..., number: int = ..., globals: Optional[Dict[str, Any]] = ...) -> List[float]: ...
|
||||
else:
|
||||
def timeit(stmt: _stmt = ..., setup: _stmt = ..., timer: _Timer = ...,
|
||||
number: int = ...) -> float: ...
|
||||
|
||||
Reference in New Issue
Block a user