Skip to content

Commit fe0e374

Browse files
author
Lukasz Langa
committed
Fixing flake8 E261 errors
1 parent b84f20a commit fe0e374

File tree

219 files changed

+4047
-3105
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

219 files changed

+4047
-3105
lines changed

.flake8

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
ignore = F401, F811, E301, E302, E305, E501, E701, E704
1414

1515
# Errors that we need to fix before enabling flake8 by default:
16-
# 3097 E261 at least 2 spaces before inline comment
1716
# 921 F821 undefined name
1817
# 221 E128 continuation line under-indented for visual indent
1918
# 213 E231 missing whitespace after , or :

stdlib/2/ConfigParser.pyi

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,38 @@
11
from typing import Any, Tuple, IO
22

3-
__all__ = ... # type: list[str]
4-
DEFAULTSECT = ... # type: str
5-
MAX_INTERPOLATION_DEPTH = ... # type: int
3+
__all__ = ... # type: list[str]
4+
DEFAULTSECT = ... # type: str
5+
MAX_INTERPOLATION_DEPTH = ... # type: int
66

77
class Error(Exception):
8-
message = ... # type: Any
8+
message = ... # type: Any
99
def __init__(self, msg: str = ...) -> None: ...
1010
def _get_message(self) -> None: ...
1111
def _set_message(self, value: str) -> None: ...
1212
def __repr__(self) -> str: ...
1313
def __str__(self) -> str: ...
1414

1515
class NoSectionError(Error):
16-
section = ... # type: str
16+
section = ... # type: str
1717
def __init__(self, section: str) -> None: ...
1818

1919
class DuplicateSectionError(Error):
20-
section = ... # type: str
20+
section = ... # type: str
2121
def __init__(self, section: str) -> None: ...
2222

2323
class NoOptionError(Error):
24-
section = ... # type: str
25-
option = ... # type: str
24+
section = ... # type: str
25+
option = ... # type: str
2626
def __init__(self, option: str, section: str) -> None: ...
2727

2828
class InterpolationError(Error):
29-
section = ... # type: str
30-
option = ... # type: str
31-
msg = ... # type: str
29+
section = ... # type: str
30+
option = ... # type: str
31+
msg = ... # type: str
3232
def __init__(self, option: str, section: str, msg: str) -> None: ...
3333

3434
class InterpolationMissingOptionError(InterpolationError):
35-
reference = ... # type: str
35+
reference = ... # type: str
3636
def __init__(self, option: str, section: str, rawval: str, reference: str) -> None: ...
3737

3838
class InterpolationSyntaxError(InterpolationError): ...
@@ -41,25 +41,25 @@ class InterpolationDepthError(InterpolationError):
4141
def __init__(self, option: str, section: str, rawval: str) -> None: ...
4242

4343
class ParsingError(Error):
44-
filename = ... # type: str
45-
errors = ... # type: list[Tuple[Any,Any]]
44+
filename = ... # type: str
45+
errors = ... # type: list[Tuple[Any,Any]]
4646
def __init__(self, filename: str) -> None: ...
4747
def append(self, lineno: Any, line: Any) -> None: ...
4848

4949
class MissingSectionHeaderError(ParsingError):
50-
lineno = ... # type: Any
51-
line = ... # type: Any
50+
lineno = ... # type: Any
51+
line = ... # type: Any
5252
def __init__(self, filename: str, lineno: Any, line: Any) -> None: ...
5353

5454

5555
class RawConfigParser:
56-
_dict = ... # type: Any
57-
_sections = ... # type: dict
58-
_defaults = ... # type: dict
59-
_optcre = ... # type: Any
60-
SECTCRE = ... # type: Any
61-
OPTCRE = ... # type: Any
62-
OPTCRE_NV = ... # type: Any
56+
_dict = ... # type: Any
57+
_sections = ... # type: dict
58+
_defaults = ... # type: dict
59+
_optcre = ... # type: Any
60+
SECTCRE = ... # type: Any
61+
OPTCRE = ... # type: Any
62+
OPTCRE_NV = ... # type: Any
6363
def __init__(self, defaults: dict[Any,Any] = ..., dict_type: Any = ..., allow_no_value: bool = ...) -> None: ...
6464
def defaults(self) -> dict[Any,Any]: ...
6565
def sections(self) -> list[str]: ...
@@ -73,7 +73,7 @@ class RawConfigParser:
7373
def _get(self, section: str, conv: type, option: str) -> Any: ...
7474
def getint(self, section: str, option: str) -> int: ...
7575
def getfloat(self, section: str, option: str) -> float: ...
76-
_boolean_states = ... # type: dict[str,bool]
76+
_boolean_states = ... # type: dict[str,bool]
7777
def getboolean(self, section: str, option: str) -> bool: ...
7878
def optionxform(self, optionstr: str) -> str: ...
7979
def has_option(self, section: str, option: str) -> bool: ...
@@ -84,13 +84,13 @@ class RawConfigParser:
8484
def _read(self, fp: file, fpname: str) -> None: ...
8585

8686
class ConfigParser(RawConfigParser):
87-
_KEYCRE = ... # type: Any
87+
_KEYCRE = ... # type: Any
8888
def get(self, section: str, option: str, raw: bool = ..., vars: dict = ...) -> Any: ...
8989
def items(self, section: str, raw: bool = ..., vars: dict = ...) -> list[Tuple[str,Any]]: ...
9090
def _interpolate(self, section: str, option: str, rawval: Any, vars: Any) -> str: ...
9191
def _interpolation_replace(self, match: Any) -> str: ...
9292

9393
class SafeConfigParser(ConfigParser):
94-
_interpvar_re = ... # type: Any
94+
_interpvar_re = ... # type: Any
9595
def _interpolate(self, section: str, option: str, rawval: Any, vars: Any) -> str: ...
9696
def _interpolate_some(self, option: str, accum: list, rest: str, section: str, map: dict, depth: int) -> None: ...

stdlib/2/Cookie.pyi

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ from typing import Any
77
class CookieError(Exception): ...
88

99
class Morsel(dict):
10-
key = ... # type: Any
10+
key = ... # type: Any
1111
def __init__(self): ...
1212
def __setitem__(self, K, V): ...
1313
def isReservedKey(self, K): ...
14-
value = ... # type: Any
15-
coded_value = ... # type: Any
14+
value = ... # type: Any
15+
coded_value = ... # type: Any
1616
def set(self, key, val, coded_val, LegalChars=..., idmap=..., translate=...): ...
1717
def output(self, attrs=None, header=...): ...
1818
def js_output(self, attrs=None): ...
@@ -41,4 +41,4 @@ class SmartCookie(BaseCookie):
4141
def value_decode(self, val): ...
4242
def value_encode(self, val): ...
4343

44-
Cookie = ... # type: Any
44+
Cookie = ... # type: Any

stdlib/2/Queue.pyi

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ class Empty(Exception): ...
88
class Full(Exception): ...
99

1010
class Queue(Generic[_T]):
11-
maxsize = ... # type: Any
12-
mutex = ... # type: Any
13-
not_empty = ... # type: Any
14-
not_full = ... # type: Any
15-
all_tasks_done = ... # type: Any
16-
unfinished_tasks = ... # type: Any
11+
maxsize = ... # type: Any
12+
mutex = ... # type: Any
13+
not_empty = ... # type: Any
14+
not_full = ... # type: Any
15+
all_tasks_done = ... # type: Any
16+
unfinished_tasks = ... # type: Any
1717
def __init__(self, maxsize: int = ...) -> None: ...
1818
def task_done(self) -> None: ...
1919
def join(self) -> None: ...

stdlib/2/StringIO.pyi

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
from typing import Any, IO, AnyStr, Iterator, Iterable, Generic, List
44

55
class StringIO(IO[AnyStr], Generic[AnyStr]):
6-
closed = ... # type: bool
7-
softspace = ... # type: int
8-
len = ... # type: int
9-
name = ... # type: str
6+
closed = ... # type: bool
7+
softspace = ... # type: int
8+
len = ... # type: int
9+
name = ... # type: str
1010
def __init__(self, buf: AnyStr = ...) -> None: ...
1111
def __iter__(self) -> Iterator[AnyStr]: ...
1212
def next(self) -> AnyStr: ...

stdlib/2/UserDict.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ _KT = TypeVar('_KT')
55
_VT = TypeVar('_VT')
66

77
class UserDict(Dict[_KT, _VT], Generic[_KT, _VT]):
8-
data = ... # type: Mapping[_KT, _VT]
8+
data = ... # type: Mapping[_KT, _VT]
99

1010
def __init__(self, initialdata: Mapping[_KT, _VT] = ...) -> None: ...
1111

stdlib/2/__builtin__.pyi

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -808,13 +808,13 @@ class buffer(Sized):
808808
def __mul__(self, x: int) -> str: ...
809809

810810
class memoryview(Sized, Container[bytes]):
811-
format = ... # type: str
812-
itemsize = ... # type: int
813-
shape = ... # type: Optional[Tuple[int, ...]]
814-
strides = ... # type: Optional[Tuple[int, ...]]
815-
suboffsets = ... # type: Optional[Tuple[int, ...]]
816-
readonly = ... # type: bool
817-
ndim = ... # type: int
811+
format = ... # type: str
812+
itemsize = ... # type: int
813+
shape = ... # type: Optional[Tuple[int, ...]]
814+
strides = ... # type: Optional[Tuple[int, ...]]
815+
suboffsets = ... # type: Optional[Tuple[int, ...]]
816+
readonly = ... # type: bool
817+
ndim = ... # type: int
818818

819819
def __init__(self, obj: Union[str, bytearray, buffer, memoryview]) -> None: ...
820820

stdlib/2/_ast.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ PyCF_ONLY_AST = ... # type: int
88
identifier = str
99

1010
class AST:
11-
_attributes = ... # type: typing.Tuple[str, ...]
12-
_fields = ... # type: typing.Tuple[str, ...]
11+
_attributes = ... # type: typing.Tuple[str, ...]
12+
_fields = ... # type: typing.Tuple[str, ...]
1313
def __init__(self, *args, **kwargs) -> None: ...
1414

1515
class mod(AST):

stdlib/2/builtins.pyi

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)