diff --git a/.flake8 b/.flake8 index bc3e1e9ef80b..b9cedd7a3e2c 100644 --- a/.flake8 +++ b/.flake8 @@ -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 diff --git a/stdlib/3/builtins.pyi b/stdlib/3/builtins.pyi index ebf02d965aa9..bfa315b3d6b0 100644 --- a/stdlib/3/builtins.pyi +++ b/stdlib/3/builtins.pyi @@ -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 diff --git a/stdlib/3/configparser.pyi b/stdlib/3/configparser.pyi index a4f2301acf93..f60045a7fb2e 100644 --- a/stdlib/3/configparser.pyi +++ b/stdlib/3/configparser.pyi @@ -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): diff --git a/stdlib/3/multiprocessing/__init__.pyi b/stdlib/3/multiprocessing/__init__.pyi index 3827677fb306..8ab505ee0696 100644 --- a/stdlib/3/multiprocessing/__init__.pyi +++ b/stdlib/3/multiprocessing/__init__.pyi @@ -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, diff --git a/stdlib/3/multiprocessing/pool.pyi b/stdlib/3/multiprocessing/pool.pyi index 7d181c3e90ce..ed917490da07 100644 --- a/stdlib/3/multiprocessing/pool.pyi +++ b/stdlib/3/multiprocessing/pool.pyi @@ -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,