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:
Sebastian Rittau
2018-10-24 16:20:53 +02:00
committed by Jelle Zijlstra
parent f362cf47fa
commit 006a79220f
83 changed files with 567 additions and 547 deletions

View File

@@ -18,7 +18,7 @@ class Connection(object):
def __exit__(self, exc_type, exc_value, exc_tb) -> None: ...
def __init__(self, _in, _out) -> None: ...
def close(self) -> None: ...
def poll(self, timeout: float=...) -> bool: ...
def poll(self, timeout: float = ...) -> bool: ...
class Listener(object):
_backlog_queue = ... # type: Optional[Queue]
@@ -32,4 +32,4 @@ class Listener(object):
def Client(address) -> Connection: ...
def Pipe(duplex: bool=...) -> Tuple[Connection, Connection]: ...
def Pipe(duplex: bool = ...) -> Tuple[Connection, Connection]: ...

View File

@@ -31,11 +31,11 @@ class Pool(ContextManager[Pool]):
args: Iterable[Any] = ...,
kwds: Mapping[str, Any] = ...) -> _T: ...
def apply_async(self,
func: Callable[..., _T],
args: Iterable[Any] = ...,
kwds: Mapping[str, Any] = ...,
callback: Optional[Callable[[_T], None]] = ...,
error_callback: Optional[Callable[[BaseException], None]] = ...) -> AsyncResult[_T]: ...
func: Callable[..., _T],
args: Iterable[Any] = ...,
kwds: Mapping[str, Any] = ...,
callback: Optional[Callable[[_T], None]] = ...,
error_callback: Optional[Callable[[BaseException], None]] = ...) -> AsyncResult[_T]: ...
def map(self,
func: Callable[[_S], _T],
iterable: Iterable[_S] = ...,