Skip to content

Commit 67e38b6

Browse files
author
Lukasz Langa
committed
Fixing flake8 E231 errors
1 parent 93ec300 commit 67e38b6

26 files changed

+181
-181
lines changed

stdlib/2/ConfigParser.pyi

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class InterpolationDepthError(InterpolationError):
4242

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

@@ -60,20 +60,20 @@ class RawConfigParser:
6060
SECTCRE = ... # type: Any
6161
OPTCRE = ... # type: Any
6262
OPTCRE_NV = ... # type: Any
63-
def __init__(self, defaults: dict[Any,Any] = ..., dict_type: Any = ..., allow_no_value: bool = ...) -> None: ...
64-
def defaults(self) -> dict[Any,Any]: ...
63+
def __init__(self, defaults: dict[Any, Any] = ..., dict_type: Any = ..., allow_no_value: bool = ...) -> None: ...
64+
def defaults(self) -> dict[Any, Any]: ...
6565
def sections(self) -> list[str]: ...
6666
def add_section(self, section: str) -> None: ...
6767
def has_section(self, section: str) -> bool: ...
6868
def options(self, section: str) -> list[str]: ...
6969
def read(self, filenames: str) -> list[str]: ...
7070
def readfp(self, fp: IO[str], filename: str = ...) -> None: ...
7171
def get(self, section: str, option: str) -> str: ...
72-
def items(self, section: str) -> list[Tuple[Any,Any]]: ...
72+
def items(self, section: str) -> list[Tuple[Any, Any]]: ...
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: ...
@@ -86,7 +86,7 @@ class RawConfigParser:
8686
class ConfigParser(RawConfigParser):
8787
_KEYCRE = ... # type: Any
8888
def get(self, section: str, option: str, raw: bool = ..., vars: dict = ...) -> Any: ...
89-
def items(self, section: str, raw: bool = ..., vars: dict = ...) -> list[Tuple[str,Any]]: ...
89+
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

stdlib/2/_codecs.pyi

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -15,41 +15,41 @@ def register(search_function: Callable[[str], Any]) -> None: ...
1515
def register_error(errors: str, handler: _Handler) -> None: ...
1616
def lookup(a: str) -> codecs.CodecInfo: ...
1717
def lookup_error(a: str) -> _Handler: ...
18-
def decode(obj: Any, encoding:str = ..., errors:str = ...) -> Any: ...
19-
def encode(obj: Any, encoding:str = ..., errors:str = ...) -> Any: ...
18+
def decode(obj: Any, encoding: str = ..., errors: str = ...) -> Any: ...
19+
def encode(obj: Any, encoding: str = ..., errors: str = ...) -> Any: ...
2020
def charmap_build(a: unicode) -> _EncodingMap: ...
2121

22-
def ascii_decode(data: AnyStr, errors:str = ...) -> Tuple[unicode, int]: ...
23-
def ascii_encode(data: AnyStr, errors:str = ...) -> Tuple[str, int]: ...
22+
def ascii_decode(data: AnyStr, errors: str = ...) -> Tuple[unicode, int]: ...
23+
def ascii_encode(data: AnyStr, errors: str = ...) -> Tuple[str, int]: ...
2424
def charbuffer_encode(data: AnyStr, errors: str = ...) -> Tuple[str, int]: ...
2525
def charmap_decode(data: AnyStr, errors: str = ..., mapping: Optional[_EncodingMap] = ...) -> Tuple[unicode, int]: ...
2626
def charmap_encode(data: AnyStr, errors: str, mapping: Optional[_EncodingMap] = ...) -> Tuple[str, int]: ...
27-
def escape_decode(data: AnyStr, errors:str = ...) -> Tuple[unicode, int]: ...
28-
def escape_encode(data: AnyStr, errors:str = ...) -> Tuple[str, int]: ...
29-
def latin_1_decode(data: AnyStr, errors:str = ...) -> Tuple[unicode, int]: ...
30-
def latin_1_encode(data: AnyStr, errors:str = ...) -> Tuple[str, int]: ...
31-
def raw_unicode_escape_decode(data: AnyStr, errors:str = ...) -> Tuple[unicode, int]: ...
32-
def raw_unicode_escape_encode(data: AnyStr, errors:str = ...) -> Tuple[str, int]: ...
33-
def readbuffer_encode(data: AnyStr, errors:str = ...) -> Tuple[str, int]: ...
34-
def unicode_escape_decode(data: AnyStr, errors:str = ...) -> Tuple[unicode, int]: ...
35-
def unicode_escape_encode(data: AnyStr, errors:str = ...) -> Tuple[str, int]: ...
36-
def unicode_internal_decode(data: AnyStr, errors:str = ...) -> Tuple[unicode, int]: ...
37-
def unicode_internal_encode(data: AnyStr, errors:str = ...) -> Tuple[str, int]: ...
38-
def utf_16_be_decode(data: AnyStr, errors:str = ..., final:int = ...) -> Tuple[unicode, int]: ...
39-
def utf_16_be_encode(data: AnyStr, errors:str = ..., final:int = ...) -> Tuple[str, int]: ...
40-
def utf_16_decode(data: AnyStr, errors:str = ..., final:int = ...) -> Tuple[unicode, int]: ...
41-
def utf_16_encode(data: AnyStr, errors:str = ..., final:int = ...) -> Tuple[str, int]: ...
42-
def utf_16_ex_decode(data: AnyStr, errors:str = ..., final:int = ...) -> Tuple[unicode, int]: ...
43-
def utf_16_le_decode(data: AnyStr, errors:str = ..., final:int = ...) -> Tuple[unicode, int]: ...
44-
def utf_16_le_encode(data: AnyStr, errors:str = ..., final:int = ...) -> Tuple[str, int]: ...
45-
def utf_32_be_decode(data: AnyStr, errors:str = ..., final:int = ...) -> Tuple[unicode, int]: ...
46-
def utf_32_be_encode(data: AnyStr, errors:str = ..., final:int = ...) -> Tuple[str, int]: ...
47-
def utf_32_decode(data: AnyStr, errors:str = ..., final:int = ...) -> Tuple[unicode, int]: ...
48-
def utf_32_encode(data: AnyStr, errors:str = ..., final:int = ...) -> Tuple[str, int]: ...
49-
def utf_32_ex_decode(data: AnyStr, errors:str = ..., final:int = ...) -> Tuple[unicode, int]: ...
50-
def utf_32_le_decode(data: AnyStr, errors:str = ..., final:int = ...) -> Tuple[unicode, int]: ...
51-
def utf_32_le_encode(data: AnyStr, errors:str = ..., final:int = ...) -> Tuple[str, int]: ...
52-
def utf_7_decode(data: AnyStr, errors:str = ..., final:int = ...) -> Tuple[unicode, int]: ...
53-
def utf_7_encode(data: AnyStr, errors:str = ..., final:int = ...) -> Tuple[str, int]: ...
54-
def utf_8_decode(data: AnyStr, errors:str = ..., final:int = ...) -> Tuple[unicode, int]: ...
55-
def utf_8_encode(data: AnyStr, errors:str = ..., final:int = ...) -> Tuple[str, int]: ...
27+
def escape_decode(data: AnyStr, errors: str = ...) -> Tuple[unicode, int]: ...
28+
def escape_encode(data: AnyStr, errors: str = ...) -> Tuple[str, int]: ...
29+
def latin_1_decode(data: AnyStr, errors: str = ...) -> Tuple[unicode, int]: ...
30+
def latin_1_encode(data: AnyStr, errors: str = ...) -> Tuple[str, int]: ...
31+
def raw_unicode_escape_decode(data: AnyStr, errors: str = ...) -> Tuple[unicode, int]: ...
32+
def raw_unicode_escape_encode(data: AnyStr, errors: str = ...) -> Tuple[str, int]: ...
33+
def readbuffer_encode(data: AnyStr, errors: str = ...) -> Tuple[str, int]: ...
34+
def unicode_escape_decode(data: AnyStr, errors: str = ...) -> Tuple[unicode, int]: ...
35+
def unicode_escape_encode(data: AnyStr, errors: str = ...) -> Tuple[str, int]: ...
36+
def unicode_internal_decode(data: AnyStr, errors: str = ...) -> Tuple[unicode, int]: ...
37+
def unicode_internal_encode(data: AnyStr, errors: str = ...) -> Tuple[str, int]: ...
38+
def utf_16_be_decode(data: AnyStr, errors: str = ..., final: int = ...) -> Tuple[unicode, int]: ...
39+
def utf_16_be_encode(data: AnyStr, errors: str = ..., final: int = ...) -> Tuple[str, int]: ...
40+
def utf_16_decode(data: AnyStr, errors: str = ..., final: int = ...) -> Tuple[unicode, int]: ...
41+
def utf_16_encode(data: AnyStr, errors: str = ..., final: int = ...) -> Tuple[str, int]: ...
42+
def utf_16_ex_decode(data: AnyStr, errors: str = ..., final: int = ...) -> Tuple[unicode, int]: ...
43+
def utf_16_le_decode(data: AnyStr, errors: str = ..., final: int = ...) -> Tuple[unicode, int]: ...
44+
def utf_16_le_encode(data: AnyStr, errors: str = ..., final: int = ...) -> Tuple[str, int]: ...
45+
def utf_32_be_decode(data: AnyStr, errors: str = ..., final: int = ...) -> Tuple[unicode, int]: ...
46+
def utf_32_be_encode(data: AnyStr, errors: str = ..., final: int = ...) -> Tuple[str, int]: ...
47+
def utf_32_decode(data: AnyStr, errors: str = ..., final: int = ...) -> Tuple[unicode, int]: ...
48+
def utf_32_encode(data: AnyStr, errors: str = ..., final: int = ...) -> Tuple[str, int]: ...
49+
def utf_32_ex_decode(data: AnyStr, errors: str = ..., final: int = ...) -> Tuple[unicode, int]: ...
50+
def utf_32_le_decode(data: AnyStr, errors: str = ..., final: int = ...) -> Tuple[unicode, int]: ...
51+
def utf_32_le_encode(data: AnyStr, errors: str = ..., final: int = ...) -> Tuple[str, int]: ...
52+
def utf_7_decode(data: AnyStr, errors: str = ..., final: int = ...) -> Tuple[unicode, int]: ...
53+
def utf_7_encode(data: AnyStr, errors: str = ..., final: int = ...) -> Tuple[str, int]: ...
54+
def utf_8_decode(data: AnyStr, errors: str = ..., final: int = ...) -> Tuple[unicode, int]: ...
55+
def utf_8_encode(data: AnyStr, errors: str = ..., final: int = ...) -> Tuple[str, int]: ...

stdlib/2/_sre.pyi

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class SRE_Match(object):
1616
@overload
1717
def group(self) -> str: ...
1818
@overload
19-
def group(self, group:int = ...) -> Optional[str]: ...
19+
def group(self, group: int = ...) -> Optional[str]: ...
2020
def groupdict(self) -> Dict[int, Optional[str]]: ...
2121
def groups(self) -> Tuple[Optional[str]]: ...
2222
def span(self) -> Tuple[int, int]:
@@ -33,17 +33,17 @@ class SRE_Pattern(object):
3333
groups = ... # type: int
3434
groupindex = ... # type: Mapping[int, int]
3535
indexgroup = ... # type: Sequence[int]
36-
def findall(self, source: str, pos:int = ..., endpos:int = ...) -> List[Union[tuple, str]]: ...
37-
def finditer(self, source: str, pos: int = ..., endpos:int = ...) -> Iterable[Union[tuple, str]]: ...
38-
def match(self, pattern, pos: int = ..., endpos:int = ...) -> SRE_Match: ...
36+
def findall(self, source: str, pos: int = ..., endpos: int = ...) -> List[Union[tuple, str]]: ...
37+
def finditer(self, source: str, pos: int = ..., endpos: int = ...) -> Iterable[Union[tuple, str]]: ...
38+
def match(self, pattern, pos: int = ..., endpos: int = ...) -> SRE_Match: ...
3939
def scanner(self, s: str, start: int = ..., end: int = ...) -> SRE_Scanner: ...
4040
def search(self, pattern, pos: int = ..., endpos: int = ...) -> SRE_Match: ...
41-
def split(self, source: str, maxsplit:int = ...) -> List[Optional[str]]: ...
42-
def sub(self, repl: str, string: str, count:int = ...) -> tuple: ...
43-
def subn(self, repl: str, string: str, count:int = ...) -> tuple: ...
41+
def split(self, source: str, maxsplit: int = ...) -> List[Optional[str]]: ...
42+
def sub(self, repl: str, string: str, count: int = ...) -> tuple: ...
43+
def subn(self, repl: str, string: str, count: int = ...) -> tuple: ...
4444

4545
def compile(pattern: str, flags: int, code: List[int],
46-
groups:int = ...,
46+
groups: int = ...,
4747
groupindex: Mapping[int, int] = ...,
4848
indexgroup: Sequence[int] = ...) -> SRE_Pattern:
4949
raise OverflowError()

stdlib/2/_struct.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ class Struct(object):
1111
def __init__(self, fmt: str) -> None: ...
1212
def pack_into(self, buffer: bytearray, offset: int, obj: Any) -> None: ...
1313
def pack(self, *args) -> str: ...
14-
def unpack(self, s:str) -> Tuple[Any]: ...
15-
def unpack_from(self, buffer: bytearray, offset:int = ...) -> Tuple[Any]: ...
14+
def unpack(self, s: str) -> Tuple[Any]: ...
15+
def unpack_from(self, buffer: bytearray, offset: int = ...) -> Tuple[Any]: ...
1616

1717
def _clearcache() -> None: ...
1818
def calcsize(fmt: str) -> int: ...

stdlib/2/_warnings.pyi

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ default_action = ... # type: str
44
filters = ... # type: List[tuple]
55
once_registry = ... # type: dict
66

7-
def warn(message: Warning, category:type = ..., stacklevel:int = ...) -> None: ...
8-
def warn_explicit(message: Warning, category:type,
7+
def warn(message: Warning, category: type = ..., stacklevel: int = ...) -> None: ...
8+
def warn_explicit(message: Warning, category: type,
99
filename: str, lineno: int,
10-
module:Any = ..., registry:dict = ...,
11-
module_globals:dict = ...) -> None: ...
10+
module: Any = ..., registry: dict = ...,
11+
module_globals: dict = ...) -> None: ...

stdlib/2/getopt.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ def getopt(args: List[str], shortopts: str,
1313
List[str]]: ...
1414

1515
def gnu_getopt(args: List[str], shortopts: str,
16-
longopts: List[str]=...) -> Tuple[List[Tuple[str,str]],
16+
longopts: List[str]=...) -> Tuple[List[Tuple[str, str]],
1717
List[str]]: ...

stdlib/2/httplib.pyi

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class HTTPResponse:
2828
chunk_left = ... # type: Any
2929
length = ... # type: Any
3030
will_close = ... # type: Any
31-
def __init__(self, sock, debuglevel=0, strict=0, method=None, buffering:bool=...) -> None: ...
31+
def __init__(self, sock, debuglevel=0, strict=0, method=None, buffering: bool=...) -> None: ...
3232
def begin(self): ...
3333
def close(self): ...
3434
def isclosed(self): ...
@@ -56,16 +56,16 @@ class HTTPConnection:
5656
def putheader(self, header, *values): ...
5757
def endheaders(self, message_body=None): ...
5858
def request(self, method, url, body=None, headers=...): ...
59-
def getresponse(self, buffering:bool=...): ...
59+
def getresponse(self, buffering: bool=...): ...
6060

6161
class HTTP:
6262
debuglevel = ... # type: Any
63-
def __init__(self, host:str=..., port=None, strict=None) -> None: ...
63+
def __init__(self, host: str=..., port=None, strict=None) -> None: ...
6464
def connect(self, host=None, port=None): ...
6565
def getfile(self): ...
6666
file = ... # type: Any
6767
headers = ... # type: Any
68-
def getreply(self, buffering:bool=...): ...
68+
def getreply(self, buffering: bool=...): ...
6969
def close(self): ...
7070

7171
class HTTPSConnection(HTTPConnection):
@@ -79,7 +79,7 @@ class HTTPSConnection(HTTPConnection):
7979
class HTTPS(HTTP):
8080
key_file = ... # type: Any
8181
cert_file = ... # type: Any
82-
def __init__(self, host:str=..., port=None, key_file=None, cert_file=None, strict=None, context=None) -> None: ...
82+
def __init__(self, host: str=..., port=None, key_file=None, cert_file=None, strict=None, context=None) -> None: ...
8383

8484
class HTTPException(Exception): ...
8585
class NotConnected(HTTPException): ...

stdlib/2/pwd.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ class struct_passwd(tuple):
1313
pw_uid = ... # type: int
1414

1515
def getpwall() -> List[struct_passwd]: ...
16-
def getpwnam(name:str) -> struct_passwd: ...
17-
def getpwuid(uid:int) -> struct_passwd: ...
16+
def getpwnam(name: str) -> struct_passwd: ...
17+
def getpwuid(uid: int) -> struct_passwd: ...

stdlib/2/re.pyi

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Ron Murawski <[email protected]>
33
# 'bytes' support added by Jukka Lehtosalo
44

5-
# based on: http://docs.python.org/2.7/library/re.html
5+
# based on: http: //docs.python.org/2.7/library/re.html
66

77
from typing import (
88
List, Iterator, overload, Callable, Tuple, Sequence, Dict,
@@ -36,24 +36,24 @@ def compile(pattern: Pattern[AnyStr], flags: int = ...) -> Pattern[AnyStr]: ...
3636
@overload
3737
def search(pattern: Union[str, unicode], string: AnyStr, flags: int = ...) -> Match[AnyStr]: ...
3838
@overload
39-
def search(pattern: Union[Pattern[str],Pattern[unicode]], string: AnyStr, flags: int = ...) -> Match[AnyStr]: ...
39+
def search(pattern: Union[Pattern[str], Pattern[unicode]], string: AnyStr, flags: int = ...) -> Match[AnyStr]: ...
4040

4141
@overload
4242
def match(pattern: Union[str, unicode], string: AnyStr, flags: int = ...) -> Match[AnyStr]: ...
4343
@overload
44-
def match(pattern: Union[Pattern[str],Pattern[unicode]], string: AnyStr, flags: int = ...) -> Match[AnyStr]: ...
44+
def match(pattern: Union[Pattern[str], Pattern[unicode]], string: AnyStr, flags: int = ...) -> Match[AnyStr]: ...
4545

4646
@overload
4747
def split(pattern: Union[str, unicode], string: AnyStr,
4848
maxsplit: int = ..., flags: int = ...) -> List[AnyStr]: ...
4949
@overload
50-
def split(pattern: Union[Pattern[str],Pattern[unicode]], string: AnyStr,
50+
def split(pattern: Union[Pattern[str], Pattern[unicode]], string: AnyStr,
5151
maxsplit: int = ..., flags: int = ...) -> List[AnyStr]: ...
5252

5353
@overload
5454
def findall(pattern: Union[str, unicode], string: AnyStr, flags: int = ...) -> List[Any]: ...
5555
@overload
56-
def findall(pattern: Union[Pattern[str],Pattern[unicode]], string: AnyStr, flags: int = ...) -> List[Any]: ...
56+
def findall(pattern: Union[Pattern[str], Pattern[unicode]], string: AnyStr, flags: int = ...) -> List[Any]: ...
5757

5858
# Return an iterator yielding match objects over all non-overlapping matches
5959
# for the RE pattern in string. The string is scanned left-to-right, and
@@ -63,7 +63,7 @@ def findall(pattern: Union[Pattern[str],Pattern[unicode]], string: AnyStr, flags
6363
def finditer(pattern: Union[str, unicode], string: AnyStr,
6464
flags: int = ...) -> Iterator[Match[AnyStr]]: ...
6565
@overload
66-
def finditer(pattern: Union[Pattern[str],Pattern[unicode]], string: AnyStr,
66+
def finditer(pattern: Union[Pattern[str], Pattern[unicode]], string: AnyStr,
6767
flags: int = ...) -> Iterator[Match[AnyStr]]: ...
6868

6969
@overload
@@ -73,10 +73,10 @@ def sub(pattern: Union[str, unicode], repl: AnyStr, string: AnyStr, count: int =
7373
def sub(pattern: Union[str, unicode], repl: Callable[[Match[AnyStr]], AnyStr],
7474
string: AnyStr, count: int = ..., flags: int = ...) -> AnyStr: ...
7575
@overload
76-
def sub(pattern: Union[Pattern[str],Pattern[unicode]], repl: AnyStr, string: AnyStr, count: int = ...,
76+
def sub(pattern: Union[Pattern[str], Pattern[unicode]], repl: AnyStr, string: AnyStr, count: int = ...,
7777
flags: int = ...) -> AnyStr: ...
7878
@overload
79-
def sub(pattern: Union[Pattern[str],Pattern[unicode]], repl: Callable[[Match[AnyStr]], AnyStr],
79+
def sub(pattern: Union[Pattern[str], Pattern[unicode]], repl: Callable[[Match[AnyStr]], AnyStr],
8080
string: AnyStr, count: int = ..., flags: int = ...) -> AnyStr: ...
8181

8282
@overload
@@ -87,10 +87,10 @@ def subn(pattern: Union[str, unicode], repl: Callable[[Match[AnyStr]], AnyStr],
8787
string: AnyStr, count: int = ...,
8888
flags: int = ...) -> Tuple[AnyStr, int]: ...
8989
@overload
90-
def subn(pattern: Union[Pattern[str],Pattern[unicode]], repl: AnyStr, string: AnyStr, count: int = ...,
90+
def subn(pattern: Union[Pattern[str], Pattern[unicode]], repl: AnyStr, string: AnyStr, count: int = ...,
9191
flags: int = ...) -> Tuple[AnyStr, int]: ...
9292
@overload
93-
def subn(pattern: Union[Pattern[str],Pattern[unicode]], repl: Callable[[Match[AnyStr]], AnyStr],
93+
def subn(pattern: Union[Pattern[str], Pattern[unicode]], repl: Callable[[Match[AnyStr]], AnyStr],
9494
string: AnyStr, count: int = ...,
9595
flags: int = ...) -> Tuple[AnyStr, int]: ...
9696

stdlib/2/strop.pyi

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ whitespace = ... # type: str
99
def atof(a: str) -> float:
1010
raise DeprecationWarning()
1111

12-
def atoi(a: str, base:int = ...) -> int:
12+
def atoi(a: str, base: int = ...) -> int:
1313
raise DeprecationWarning()
1414

15-
def atol(a: str, base:int = ...) -> long:
15+
def atol(a: str, base: int = ...) -> long:
1616
raise DeprecationWarning()
1717

1818
def capitalize(s: str) -> str:
@@ -21,18 +21,18 @@ def capitalize(s: str) -> str:
2121
def count(s: str, sub: str, start: int = ..., end: int = ...) -> int:
2222
raise DeprecationWarning()
2323

24-
def expandtabs(string:str, tabsize:int = ...) -> str:
24+
def expandtabs(string: str, tabsize: int = ...) -> str:
2525
raise DeprecationWarning()
2626
raise OverflowError()
2727

2828
def find(s: str, sub: str, start: int = ..., end: int = ...) -> int:
2929
raise DeprecationWarning()
3030

31-
def join(list: Sequence[str], sep:str = ...) -> str:
31+
def join(list: Sequence[str], sep: str = ...) -> str:
3232
raise DeprecationWarning()
3333
raise OverflowError()
3434

35-
def joinfields(list: Sequence[str], sep:str = ...) -> str:
35+
def joinfields(list: Sequence[str], sep: str = ...) -> str:
3636
raise DeprecationWarning()
3737
raise OverflowError()
3838

@@ -44,7 +44,7 @@ def lstrip(s: str) -> str:
4444

4545
def maketrans(frm: str, to: str) -> str: ...
4646

47-
def replace(s: str, old: str, new: str, maxsplit:int = ...) -> str:
47+
def replace(s: str, old: str, new: str, maxsplit: int = ...) -> str:
4848
raise DeprecationWarning()
4949

5050
def rfind(s: str, sub: str, start: int = ..., end: int = ...) -> int:

0 commit comments

Comments
 (0)