Fixing flake8 E111, E114, E116, E203, E225, E262 errors

This commit is contained in:
Lukasz Langa
2016-12-20 01:39:18 -08:00
parent 6e2709906b
commit 68a49c2c2e
12 changed files with 18 additions and 43 deletions

View File

@@ -12,7 +12,8 @@ if sys.version_info >= (3, 4):
_Path = Union[bytes, str]
class Finder(metaclass=ABCMeta): ...
class Finder(metaclass=ABCMeta):
...
# Technically this class defines the following method, but its subclasses
# in this module violate its signature. Since this class is deprecated, it's
# easier to simply ignore that this method exists.

View File

@@ -141,14 +141,12 @@ class stat_result:
st_size = 0 # size of file, in bytes,
st_atime = 0.0 # time of most recent access,
st_mtime = 0.0 # time of most recent content modification,
st_ctime = 0.0 # platform dependent (time of most recent metadata change
# on Unix, or the time of creation on Windows)
st_ctime = 0.0 # platform dependent (time of most recent metadata change on Unix, or the time of creation on Windows)
if sys.version_info >= (3, 3):
st_atime_ns = 0 # time of most recent access, in nanoseconds
st_mtime_ns = 0 # time of most recent content modification in nanoseconds
st_ctime_ns = 0 # platform dependent (time of most recent metadata change
# on Unix, or the time of creation on Windows) in nanoseconds
st_ctime_ns = 0 # platform dependent (time of most recent metadata change on Unix, or the time of creation on Windows) in nanoseconds
# not documented
def __init__(self, tuple: Tuple[int, ...]) -> None: ...
@@ -185,7 +183,7 @@ class statvfs_result: # Unix only
# ----- os function stubs -----
def fsencode(filename: str) -> bytes: ...
def fsdecode(filename: bytes) -> str: ...
def get_exec_path(env: Optional[Mapping[str, str]] = ...) -> List[str] : ...
def get_exec_path(env: Optional[Mapping[str, str]] = ...) -> List[str]: ...
# NOTE: get_exec_path(): returns List[bytes] when env not None
def ctermid() -> str: ... # Unix only
def getegid() -> int: ... # Unix only

View File

@@ -29,7 +29,7 @@ def move(src: str, dst: str) -> None: ...
class Error(Exception): ...
if sys.version_info >= (3, 4):
class SameFileError(Error): ...
class SameFileError(Error): ...
def make_archive(base_name: str, format: str, root_dir: str = ...,
base_dir: str = ..., verbose: bool = ...,

View File

@@ -64,8 +64,8 @@ UF_APPEND = 0
UF_OPAQUE = 0
UF_NOUNLINK = 0
if sys.platform == 'darwin':
UF_COMPRESSED = 0 # OS X 10.6+ only
UF_HIDDEN = 0 # OX X 10.5+ only
UF_COMPRESSED = 0 # OS X 10.6+ only
UF_HIDDEN = 0 # OX X 10.5+ only
SF_ARCHIVED = 0
SF_IMMUTABLE = 0
SF_APPEND = 0

View File

@@ -96,9 +96,7 @@ class _hash_info:
int_info = ... # type: _int_info
class _int_info:
bits_per_digit = 0 # number of bits held in each digit. Python integers
# are stored internally in
# base 2**int_info.bits_per_digit
bits_per_digit = 0 # number of bits held in each digit. Python integers are stored internally in base 2**int_info.bits_per_digit
sizeof_digit = 0 # size in bytes of C type used to represent a digit
class _version_info(Tuple[int, int, int, str, int]):

View File

@@ -84,7 +84,7 @@ class SplitResultBytes(_SplitResultBase[bytes], _NetlocResultMixinBytes): ...
class ParseResultBytes(_ParseResultBase[bytes], _NetlocResultMixinBytes): ...
def parse_qs(qs: str, keep_blank_values : bool = ..., strict_parsing : bool = ..., encoding : str = ..., errors: str = ...) -> Dict[str, List[str]]: ...
def parse_qs(qs: str, keep_blank_values: bool = ..., strict_parsing: bool = ..., encoding: str = ..., errors: str = ...) -> Dict[str, List[str]]: ...
def parse_qsl(qs: str, keep_blank_values: bool = ..., strict_parsing: bool = ..., encoding: str = ..., errors: str = ...) -> List[Tuple[str, str]]: ...