Fixing flake8 E251 errors

This commit is contained in:
Lukasz Langa
2016-12-20 01:54:34 -08:00
parent 68a49c2c2e
commit 99a57e5cbe
9 changed files with 13 additions and 13 deletions

View File

@@ -6,6 +6,7 @@ from typing import (
Iterable,
Iterator,
List,
Optional,
Tuple,
Union,
)
@@ -68,7 +69,7 @@ def register(search_function: Callable[[str], CodecInfo]) -> None:
def open(filename: str, mode: str = ..., encoding: str = ..., errors: str = ..., buffering: int = ...) -> StreamReaderWriter:
...
def EncodedFile(file: BinaryIO, data_encoding: str, file_encoding: str = ..., errors = ...) -> 'StreamRecoder':
def EncodedFile(file: BinaryIO, data_encoding: str, file_encoding: str = ..., errors: Optional[str] = ...) -> 'StreamRecoder':
...
def iterencode(iterator: Iterable[_decoded], encoding: str, errors: str = ...) -> Iterator[_encoded]:

View File

@@ -63,7 +63,7 @@ class JSONDecoder(object):
strict: bool = ...,
object_pairs_hook: Callable[..., Any] = ...) -> None: ...
def decode(self, s: Union[Text, bytes], _w = ...) -> Any: ...
def decode(self, s: Union[Text, bytes], _w: Any = ...) -> Any: ...
def raw_decode(self,
s: Union[Text, bytes],