Consistently use '= ...' for optional parameters.

This commit is contained in:
Matthias Kramm
2015-11-09 13:55:00 -08:00
parent 375bf063b1
commit 94c9ce8fd0
278 changed files with 2085 additions and 2085 deletions

View File

@@ -29,28 +29,28 @@ UNICODE = 0
class error(Exception): ...
def compile(pattern: AnyStr, flags: int = 0) -> Pattern[AnyStr]: ...
def compile(pattern: AnyStr, flags: int = ...) -> Pattern[AnyStr]: ...
def search(pattern: AnyStr, string: AnyStr,
flags: int = 0) -> Match[AnyStr]: ...
flags: int = ...) -> Match[AnyStr]: ...
def match(pattern: AnyStr, string: AnyStr,
flags: int = 0) -> Match[AnyStr]: ...
def split(pattern: AnyStr, string: AnyStr, maxsplit: int = 0,
flags: int = 0) -> List[AnyStr]: ...
flags: int = ...) -> Match[AnyStr]: ...
def split(pattern: AnyStr, string: AnyStr, maxsplit: int = ...,
flags: int = ...) -> List[AnyStr]: ...
def findall(pattern: AnyStr, string: AnyStr,
flags: int = 0) -> List[AnyStr]: ...
flags: int = ...) -> List[AnyStr]: ...
# Return an iterator yielding match objects over all non-overlapping matches
# for the RE pattern in string. The string is scanned left-to-right, and
# matches are returned in the order found. Empty matches are included in the
# result unless they touch the beginning of another match.
def finditer(pattern: AnyStr, string: AnyStr,
flags: int = 0) -> Iterator[Match[AnyStr]]: ...
flags: int = ...) -> Iterator[Match[AnyStr]]: ...
def sub(pattern: AnyStr, repl: Union[AnyStr, Callable[[Match[AnyStr]], AnyStr]],
string: AnyStr, count: int = 0, flags: int = 0) -> AnyStr: ...
string: AnyStr, count: int = ..., flags: int = ...) -> AnyStr: ...
def subn(pattern: AnyStr, repl: Union[AnyStr, Callable[[Match[AnyStr]], AnyStr]],
string: AnyStr, count: int = 0, flags: int = 0) -> Tuple[AnyStr, int]:
string: AnyStr, count: int = ..., flags: int = ...) -> Tuple[AnyStr, int]:
...
def escape(string: AnyStr) -> AnyStr: ...