Skip to content

Commit

Permalink
Fixing flake8 B errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukasz Langa committed Dec 20, 2016
1 parent ad9038d commit 6e27099
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 10 deletions.
4 changes: 1 addition & 3 deletions .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,15 @@
# 44 E127 continuation line over-indented for visual indent

[flake8]
ignore = F401, F811, E127, E128, E301, E302, E305, E501, E701, E704
ignore = F401, F811, E127, E128, E301, E302, E305, E501, E701, E704, B303

# Errors that we need to fix before enabling flake8 by default:
# 921 F821 undefined name
# 28 E116 unexpected indentation (comment)
# 26 F403 from * import used
# 14 E251 unexpected spaces around keyword argument '='
# 8 B006 mutable argument defaults
# 7 E999 invalid syntax
# 7 E111 indentation is not a multiple of four
# 5 F405 name undefined or from * imports
# 4 E262 inline comment should start with #
# 4 E114 indentation is not a multiple of four
# 2 B303 __metaclass__ use on Python 3
4 changes: 2 additions & 2 deletions stdlib/3/builtins.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -787,8 +787,8 @@ def zip(iter1: Iterable[_T1], iter2: Iterable[_T2],
def zip(iter1: Iterable[_T1], iter2: Iterable[_T2], iter3: Iterable[_T3],
iter4: Iterable[_T4]) -> Iterator[Tuple[_T1, _T2,
_T3, _T4]]: ... # TODO more than four iterables
def __import__(name: str, globals: Dict[str, Any] = {}, locals: Dict[str, Any] = {},
fromlist: List[str] = [], level: int = -1) -> Any: ...
def __import__(name: str, globals: Dict[str, Any] = ..., locals: Dict[str, Any] = ...,
fromlist: List[str] = ..., level: int = -1) -> Any: ...

# Ellipsis

Expand Down
2 changes: 1 addition & 1 deletion stdlib/3/configparser.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ class ConfigParser(RawConfigParser):
empty_lines_in_values: bool = ...,
default_section: str = ...,
interpolation: Interpolation = None,
converters: _converters = {}) -> None: ...
converters: _converters = ...) -> None: ...


class Error(Exception):
Expand Down
4 changes: 2 additions & 2 deletions stdlib/3/multiprocessing/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ class Pool():
def apply(self,
func: Callable[..., Any],
args: Iterable[Any]=(),
kwds: Dict[str, Any]={}) -> Any: ...
kwds: Dict[str, Any]=...) -> Any: ...
def apply_async(self,
func: Callable[..., Any],
args: Iterable[Any]=(),
kwds: Dict[str, Any]={},
kwds: Dict[str, Any]=...,
callback: Callable[..., None] = None,
error_callback: Callable[[BaseException], None] = None) -> AsyncResult: ...
def map(self,
Expand Down
4 changes: 2 additions & 2 deletions stdlib/3/multiprocessing/pool.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ class ThreadPool():
def apply(self,
func: Callable[..., Any],
args: Iterable[Any]=(),
kwds: Dict[str, Any]={}) -> Any: ...
kwds: Dict[str, Any]=...) -> Any: ...
def apply_async(self,
func: Callable[..., Any],
args: Iterable[Any]=(),
kwds: Dict[str, Any]={},
kwds: Dict[str, Any]=...,
callback: Callable[..., None] = None,
error_callback: Callable[[BaseException], None] = None) -> AsyncResult: ...
def map(self,
Expand Down

0 comments on commit 6e27099

Please sign in to comment.