diff --git a/.flake8 b/.flake8 index 849e76b99..9bb224f63 100644 --- a/.flake8 +++ b/.flake8 @@ -24,18 +24,14 @@ ignore = F401, F811, E301, E302, E305, E501, E701, E704 # 44 E127 continuation line over-indented for visual indent # 37 E126 continuation line over-indented for hanging indent # 30 E124 closing bracket does not match visual indentation -# 29 W391 blank line at end of file # 28 E116 unexpected indentation (comment) # 26 F403 from * import used # 20 E101 mixed spaces and tabs -# 19 W191 tabs # 14 E251 unexpected spaces around keyword argument '=' # 14 E203 whitespace before -# 10 W291 trailing whitespace # 8 B006 mutable argument defaults # 7 E999 invalid syntax # 7 E111 indentation is not a multiple of four -# 5 W293 blank line with whitespace # 5 F405 name undefined or from * imports # 5 E123 closing bracket does not match indentation of opening bracket # 4 E262 inline comment should start with # @@ -43,7 +39,6 @@ ignore = F401, F811, E301, E302, E305, E501, E701, E704 # 4 E114 indentation is not a multiple of four # 3 E303 too many blank lines # 3 E125 continuation line with same indent as next logical line -# 2 W292 no newline at end of file # 2 E241 multiple spaces after , # 2 E131 continuation line unaligned for hanging indent # 2 B303 __metaclass__ use on Python 3 diff --git a/stdlib/2/HTMLParser.pyi b/stdlib/2/HTMLParser.pyi index c6b8a96d9..989e14c80 100644 --- a/stdlib/2/HTMLParser.pyi +++ b/stdlib/2/HTMLParser.pyi @@ -28,4 +28,4 @@ class HTMLParser(ParserBase): class HTMLParseError(Exception): msg = ... # type: str lineno = ... # type: int - offset = ... # type: int \ No newline at end of file + offset = ... # type: int diff --git a/stdlib/2/UserString.pyi b/stdlib/2/UserString.pyi index d2a33c32a..3a26a7ccd 100644 --- a/stdlib/2/UserString.pyi +++ b/stdlib/2/UserString.pyi @@ -1,4 +1,4 @@ import collections class UserString(collections.Sequence): ... -class MutableString(UserString, collections.MutableSequence): ... \ No newline at end of file +class MutableString(UserString, collections.MutableSequence): ... diff --git a/stdlib/2/_sre.pyi b/stdlib/2/_sre.pyi index 2f1500f66..d6b03d3ee 100644 --- a/stdlib/2/_sre.pyi +++ b/stdlib/2/_sre.pyi @@ -29,8 +29,8 @@ class SRE_Scanner(object): class SRE_Pattern(object): pattern = ... # type: str - flags = ... # type: int - groups = ... # type: int + flags = ... # type: int + groups = ... # type: int groupindex = ... # type: Mapping[int, int] indexgroup = ... # type: Sequence[int] def findall(self, source: str, pos:int = ..., endpos:int = ...) -> List[Union[tuple, str]]: ... diff --git a/stdlib/2/_symtable.pyi b/stdlib/2/_symtable.pyi index fd596d231..fd8b691f1 100644 --- a/stdlib/2/_symtable.pyi +++ b/stdlib/2/_symtable.pyi @@ -37,5 +37,3 @@ class symtable(object): varnames = ... # type: List[str] def __init__(self, src: str, filename: str, startstr: str) -> None: ... - - diff --git a/stdlib/2/ast.pyi b/stdlib/2/ast.pyi index 5bad0bc57..95bda5480 100644 --- a/stdlib/2/ast.pyi +++ b/stdlib/2/ast.pyi @@ -38,6 +38,3 @@ class NodeVisitor(): class NodeTransformer(NodeVisitor): def generic_visit(self, node: AST) -> None: ... - - - diff --git a/stdlib/2/decimal.pyi b/stdlib/2/decimal.pyi index 134505c93..63bf63f93 100644 --- a/stdlib/2/decimal.pyi +++ b/stdlib/2/decimal.pyi @@ -14,9 +14,9 @@ DecimalTuple = NamedTuple('DecimalTuple', ('exponent', int)]) ROUND_DOWN = ... # type: str -ROUND_HALF_UP = ... # type: str +ROUND_HALF_UP = ... # type: str ROUND_HALF_EVEN = ... # type: str -ROUND_CEILING = ... # type: str +ROUND_CEILING = ... # type: str ROUND_FLOOR = ... # type: str ROUND_UP = ... # type: str ROUND_HALF_DOWN = ... # type: str @@ -155,16 +155,16 @@ class Decimal(SupportsAbs[Decimal], SupportsFloat, SupportsInt): def __format__(self, specifier, context=None, _localeconv=None) -> str: ... class _ContextManager: - new_context = ... # type: Context + new_context = ... # type: Context saved_context = ... # type: Context def __init__(self, new_context: Context) -> None: ... def __enter__(self): ... def __exit__(self, t, v, tb): ... class Context: - prec = ... # type: int - rounding = ... # type: str - Emin = ... # type: int + prec = ... # type: int + rounding = ... # type: str + Emin = ... # type: int Emax = ... # type: int capitals = ... # type: int traps = ... # type: Dict[type, bool] diff --git a/stdlib/2/optparse.pyi b/stdlib/2/optparse.pyi index eb753b23b..0606a6234 100644 --- a/stdlib/2/optparse.pyi +++ b/stdlib/2/optparse.pyi @@ -247,4 +247,3 @@ class Values: def ensure_value(self, attr, value) -> Any: ... def read_file(self, filename, *args, **kwargs) -> None: ... def read_module(self, modname, *args, **kwargs) -> None: ... - diff --git a/stdlib/2/posix.pyi b/stdlib/2/posix.pyi index dc8ae5ded..6c63864f0 100644 --- a/stdlib/2/posix.pyi +++ b/stdlib/2/posix.pyi @@ -203,4 +203,3 @@ def wait4(pid: int, options: int) -> Tuple[int, int, _r]: ... def waitpid(pid: int, options: int) -> int: raise OSError() def write(fd: int, str: str) -> int: ... - diff --git a/stdlib/2/pwd.pyi b/stdlib/2/pwd.pyi index facd9dbea..aa9d2a376 100644 --- a/stdlib/2/pwd.pyi +++ b/stdlib/2/pwd.pyi @@ -15,4 +15,3 @@ class struct_passwd(tuple): def getpwall() -> List[struct_passwd]: ... def getpwnam(name:str) -> struct_passwd: ... def getpwuid(uid:int) -> struct_passwd: ... - diff --git a/stdlib/2/sha.pyi b/stdlib/2/sha.pyi index 8e4d49ac1..f1606fa8d 100644 --- a/stdlib/2/sha.pyi +++ b/stdlib/2/sha.pyi @@ -9,4 +9,3 @@ class sha(object): def new(string: str = ...) -> sha: ... blocksize = 0 digest_size = 0 - diff --git a/stdlib/2/strop.pyi b/stdlib/2/strop.pyi index e37abe99e..f93c59c23 100644 --- a/stdlib/2/strop.pyi +++ b/stdlib/2/strop.pyi @@ -70,4 +70,3 @@ def translate(s: str, table: str, deletechars: str = ...) -> str: def upper(s: str) -> str: raise DeprecationWarning() - diff --git a/stdlib/2/typing.pyi b/stdlib/2/typing.pyi index 73b1a435e..deb12e7e2 100644 --- a/stdlib/2/typing.pyi +++ b/stdlib/2/typing.pyi @@ -358,4 +358,3 @@ def NamedTuple(typename: str, fields: Iterable[Tuple[str, Any]], *, verbose: bool = ..., rename: bool = ...) -> Type[tuple]: ... def NewType(name: str, tp: Type[_T]) -> Type[_T]: ... - diff --git a/stdlib/2and3/pstats.pyi b/stdlib/2and3/pstats.pyi index fbdfc6579..9a872c2dd 100644 --- a/stdlib/2and3/pstats.pyi +++ b/stdlib/2and3/pstats.pyi @@ -31,4 +31,3 @@ class Stats: def print_call_line(self, name_size: int, source: str, call_dict: Dict[str, Any], arrow: str = ...) -> None: ... def print_title(self) -> None: ... def print_line(self, func: str) -> None: ... - diff --git a/stdlib/2and3/zipimport.pyi b/stdlib/2and3/zipimport.pyi index 2408d108b..eb70eb307 100644 --- a/stdlib/2and3/zipimport.pyi +++ b/stdlib/2and3/zipimport.pyi @@ -16,4 +16,3 @@ class zipimporter(object): def get_source(self, fullname: str) -> Optional[str]: ... def is_package(self, fullname: str) -> bool: ... def load_module(self, fullname: str) -> ModuleType: ... - diff --git a/stdlib/3.4/asyncio/tasks.pyi b/stdlib/3.4/asyncio/tasks.pyi index 8d6d7fb8a..c67518f79 100644 --- a/stdlib/3.4/asyncio/tasks.pyi +++ b/stdlib/3.4/asyncio/tasks.pyi @@ -54,4 +54,3 @@ class Task(Future[_T], Generic[_T]): def cancel(self) -> bool: ... def _step(self, value: Any = ..., exc: Exception = ...) -> None: ... def _wakeup(self, future: Future[Any]) -> None: ... - diff --git a/stdlib/3.4/pathlib.pyi b/stdlib/3.4/pathlib.pyi index 83519db8e..1b94891e9 100644 --- a/stdlib/3.4/pathlib.pyi +++ b/stdlib/3.4/pathlib.pyi @@ -93,9 +93,9 @@ class Path(PurePath): if sys.version_info >= (3, 5): @classmethod def home(cls: Type[_P]) -> _P: ... - def __new__(cls: Type[_P], *args: Union[str, PurePath], + def __new__(cls: Type[_P], *args: Union[str, PurePath], **kwargs: Any) -> _P: ... - + def absolute(self: _P) -> _P: ... def expanduser(self: _P) -> _P: ... def read_bytes(self) -> bytes: ... @@ -105,7 +105,7 @@ class Path(PurePath): def write_bytes(self, data: bytes) -> int: ... def write_text(self, data: str, encoding: Optional[str] = ..., errors: Optional[str] = ...) -> int: ... - + class PosixPath(Path, PurePosixPath): ... class WindowsPath(Path, PureWindowsPath): ... diff --git a/stdlib/3/ast.pyi b/stdlib/3/ast.pyi index 86a8431ac..966cc391d 100644 --- a/stdlib/3/ast.pyi +++ b/stdlib/3/ast.pyi @@ -37,4 +37,3 @@ def literal_eval(node_or_string: Union[str, AST]) -> Any: ... def walk(node: AST) -> Iterator[AST]: ... PyCF_ONLY_AST = ... # type: int - diff --git a/stdlib/3/concurrent/futures/process.pyi b/stdlib/3/concurrent/futures/process.pyi index d3da98238..1e40a5146 100644 --- a/stdlib/3/concurrent/futures/process.pyi +++ b/stdlib/3/concurrent/futures/process.pyi @@ -12,4 +12,3 @@ class ProcessPoolExecutor(Executor): def submit(self, fn: Callable[..., _T], *args: Any, **kwargs: Any) -> Future[_T]: ... def map(self, func: Callable[..., _T], *iterables: Any, timeout: Optional[float] = ..., chunksize: int = ...) -> Iterable[_T]: ... def shutdown(self, wait: bool = ...) -> None: ... - diff --git a/stdlib/3/concurrent/futures/thread.pyi b/stdlib/3/concurrent/futures/thread.pyi index 65885fd26..e366d4d3a 100644 --- a/stdlib/3/concurrent/futures/thread.pyi +++ b/stdlib/3/concurrent/futures/thread.pyi @@ -8,4 +8,3 @@ class ThreadPoolExecutor(Executor): def submit(self, fn: Callable[..., _T], *args: Any, **kwargs: Any) -> Future[_T]: ... def map(self, func: Callable[..., _T], *iterables: Any, timeout: Optional[float] = ..., chunksize: int = ...) -> Iterable[_T]: ... def shutdown(self, wait: bool = ...) -> None: ... - diff --git a/stdlib/3/dis.pyi b/stdlib/3/dis.pyi index 47776148a..946a2d159 100644 --- a/stdlib/3/dis.pyi +++ b/stdlib/3/dis.pyi @@ -22,7 +22,7 @@ Instruction = NamedTuple("Instruction", [ ]) -# if sys.version_info >= (3, 4): +# if sys.version_info >= (3, 4): class Bytecode: codeobj = ... # type: types.CodeType first_line = ... # type: int @@ -36,7 +36,7 @@ class Bytecode: @classmethod def from_traceback(cls, tb: types.TracebackType) -> Bytecode: ... - + COMPILER_FLAG_NAMES = ... # type: Dict[int, str] @@ -50,7 +50,7 @@ def findlinestarts(code: _have_code) -> Iterator[Tuple[int, int]]: ... # if sys.version_info >= (3, 2): def code_info(x: _have_code_or_string) -> str: ... - + # `file` parameter requires sys.version_info >= (3, 4): def dis(x: _have_code_or_string = ..., *, file = ...) -> None: ... def distb(tb: types.TracebackType = ..., *, file: IO[str] = ...) -> None: ... diff --git a/stdlib/3/email/parser.pyi b/stdlib/3/email/parser.pyi index 02c4ab646..d878f1dd2 100644 --- a/stdlib/3/email/parser.pyi +++ b/stdlib/3/email/parser.pyi @@ -59,4 +59,3 @@ if sys.version_info >= (3, 2): strict: Optional[bool]) -> None: ... def parse(self, fp: BinaryIO, headersonly: bool = ...) -> Message: ... def parsestr(self, text: str, headersonly: bool = ...) -> Message: ... - diff --git a/stdlib/3/posix.pyi b/stdlib/3/posix.pyi index 3debbbfa5..03e452351 100644 --- a/stdlib/3/posix.pyi +++ b/stdlib/3/posix.pyi @@ -4,4 +4,3 @@ import typing from os import stat_result - diff --git a/stdlib/3/subprocess.pyi b/stdlib/3/subprocess.pyi index 80ae03be5..bbd52e62f 100644 --- a/stdlib/3/subprocess.pyi +++ b/stdlib/3/subprocess.pyi @@ -20,25 +20,25 @@ if sys.version_info >= (3, 5): # Nearly same args as Popen.__init__ except for timeout, input, and check def run(args: Union[str, Sequence[str]], - timeout: float = ..., - input: Union[str, bytes] = ..., - check: bool = ..., - bufsize: int = ..., - executable: str = ..., - stdin: Any = ..., - stdout: Any = ..., - stderr: Any = ..., - preexec_fn: Callable[[], Any] = ..., - close_fds: bool = ..., - shell: bool = ..., - cwd: str = ..., - env: Mapping[str, str] = ..., - universal_newlines: bool = ..., - startupinfo: Any = ..., - creationflags: int = ..., - restore_signals: bool = ..., - start_new_session: bool = ..., - pass_fds: Any = ...) -> CompletedProcess: ... + timeout: float = ..., + input: Union[str, bytes] = ..., + check: bool = ..., + bufsize: int = ..., + executable: str = ..., + stdin: Any = ..., + stdout: Any = ..., + stderr: Any = ..., + preexec_fn: Callable[[], Any] = ..., + close_fds: bool = ..., + shell: bool = ..., + cwd: str = ..., + env: Mapping[str, str] = ..., + universal_newlines: bool = ..., + startupinfo: Any = ..., + creationflags: int = ..., + restore_signals: bool = ..., + start_new_session: bool = ..., + pass_fds: Any = ...) -> CompletedProcess: ... # Same args as Popen.__init__ if sys.version_info >= (3, 3): diff --git a/stdlib/3/typing.pyi b/stdlib/3/typing.pyi index 4c79c3507..86e4f5f6f 100644 --- a/stdlib/3/typing.pyi +++ b/stdlib/3/typing.pyi @@ -447,4 +447,3 @@ def NamedTuple(typename: str, fields: Iterable[Tuple[str, Any]], *, verbose: bool = ..., rename: bool = ..., module: str = None) -> Type[tuple]: ... def NewType(name: str, tp: Type[_T]) -> Type[_T]: ... - diff --git a/third_party/2/kazoo/__init__.pyi b/third_party/2/kazoo/__init__.pyi index 70b864877..1aae9a518 100644 --- a/third_party/2/kazoo/__init__.pyi +++ b/third_party/2/kazoo/__init__.pyi @@ -1,4 +1,3 @@ # Stubs for kazoo (Python 2) # # NOTE: This dynamically typed stub was automatically generated by stubgen. - diff --git a/third_party/2/kazoo/recipe/__init__.pyi b/third_party/2/kazoo/recipe/__init__.pyi index 04a7fa2ee..44bc4cb0e 100644 --- a/third_party/2/kazoo/recipe/__init__.pyi +++ b/third_party/2/kazoo/recipe/__init__.pyi @@ -1,4 +1,3 @@ # Stubs for kazoo.recipe (Python 2) # # NOTE: This dynamically typed stub was automatically generated by stubgen. - diff --git a/third_party/2/requests/packages/urllib3/contrib/__init__.pyi b/third_party/2/requests/packages/urllib3/contrib/__init__.pyi index 17d26bb13..69e47f704 100644 --- a/third_party/2/requests/packages/urllib3/contrib/__init__.pyi +++ b/third_party/2/requests/packages/urllib3/contrib/__init__.pyi @@ -1,4 +1,3 @@ # Stubs for requests.packages.urllib3.contrib (Python 3.4) # # NOTE: This dynamically typed stub was automatically generated by stubgen. - diff --git a/third_party/2/requests/packages/urllib3/packages/__init__.pyi b/third_party/2/requests/packages/urllib3/packages/__init__.pyi index 231463649..67507f9a9 100644 --- a/third_party/2/requests/packages/urllib3/packages/__init__.pyi +++ b/third_party/2/requests/packages/urllib3/packages/__init__.pyi @@ -1,4 +1,3 @@ # Stubs for requests.packages.urllib3.packages (Python 3.4) # # NOTE: This dynamically typed stub was automatically generated by stubgen. - diff --git a/third_party/2/requests/packages/urllib3/util/__init__.pyi b/third_party/2/requests/packages/urllib3/util/__init__.pyi index eca2ea93d..0a2c9ba4c 100644 --- a/third_party/2/requests/packages/urllib3/util/__init__.pyi +++ b/third_party/2/requests/packages/urllib3/util/__init__.pyi @@ -4,4 +4,3 @@ from . import connection from . import request - diff --git a/third_party/2/six/moves/__init__.pyi b/third_party/2/six/moves/__init__.pyi index 072b4d697..2e09f9892 100644 --- a/third_party/2/six/moves/__init__.pyi +++ b/third_party/2/six/moves/__init__.pyi @@ -29,4 +29,3 @@ import six.moves.urllib_parse as urllib_parse import six.moves.urllib_error as urllib_error import six.moves.urllib as urllib import six.moves.urllib_robotparser as urllib_robotparser - diff --git a/third_party/2/tornado/locks.pyi b/third_party/2/tornado/locks.pyi index 3ad107cdc..5585f9db0 100644 --- a/third_party/2/tornado/locks.pyi +++ b/third_party/2/tornado/locks.pyi @@ -47,4 +47,3 @@ class Lock: __exit__ = ... # type: Any def __aenter__(self): ... def __aexit__(self, typ, value, tb): ... - diff --git a/third_party/2/werkzeug/contrib/__init__.pyi b/third_party/2/werkzeug/contrib/__init__.pyi index fef921bba..4b77b0177 100644 --- a/third_party/2/werkzeug/contrib/__init__.pyi +++ b/third_party/2/werkzeug/contrib/__init__.pyi @@ -1,4 +1,3 @@ # Stubs for werkzeug.contrib (Python 2) # # NOTE: This dynamically typed stub was automatically generated by stubgen. - diff --git a/third_party/2and3/Crypto/Random/Fortuna/__init__.pyi b/third_party/2and3/Crypto/Random/Fortuna/__init__.pyi index 797c245b4..fd03fb295 100644 --- a/third_party/2and3/Crypto/Random/Fortuna/__init__.pyi +++ b/third_party/2and3/Crypto/Random/Fortuna/__init__.pyi @@ -1,4 +1,3 @@ # Stubs for Crypto.Random.Fortuna (Python 3.5) # # NOTE: This dynamically typed stub was automatically generated by stubgen. - diff --git a/third_party/3/requests/packages/urllib3/contrib/__init__.pyi b/third_party/3/requests/packages/urllib3/contrib/__init__.pyi index 17d26bb13..69e47f704 100644 --- a/third_party/3/requests/packages/urllib3/contrib/__init__.pyi +++ b/third_party/3/requests/packages/urllib3/contrib/__init__.pyi @@ -1,4 +1,3 @@ # Stubs for requests.packages.urllib3.contrib (Python 3.4) # # NOTE: This dynamically typed stub was automatically generated by stubgen. - diff --git a/third_party/3/requests/packages/urllib3/packages/__init__.pyi b/third_party/3/requests/packages/urllib3/packages/__init__.pyi index 231463649..67507f9a9 100644 --- a/third_party/3/requests/packages/urllib3/packages/__init__.pyi +++ b/third_party/3/requests/packages/urllib3/packages/__init__.pyi @@ -1,4 +1,3 @@ # Stubs for requests.packages.urllib3.packages (Python 3.4) # # NOTE: This dynamically typed stub was automatically generated by stubgen. - diff --git a/third_party/3/werkzeug/contrib/__init__.pyi b/third_party/3/werkzeug/contrib/__init__.pyi index 6def0d425..3fb41165b 100644 --- a/third_party/3/werkzeug/contrib/__init__.pyi +++ b/third_party/3/werkzeug/contrib/__init__.pyi @@ -1,4 +1,3 @@ # Stubs for werkzeug.contrib (Python 3.5) # # NOTE: This dynamically typed stub was automatically generated by stubgen. -