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

@@ -4,8 +4,8 @@
from typing import List, Tuple, Any, TextIO
def split(s: str, comments: bool = False,
posix: bool = True) -> List[str]: ...
def split(s: str, comments: bool = ...,
posix: bool = ...) -> List[str]: ...
# Added in 3.3, use (undocumented) pipes.quote in previous versions.
def quote(s: str) -> str: ...
@@ -26,14 +26,14 @@ class shlex:
token = ... # type: str
eof = ... # type: str
def __init__(self, instream=None, infile=None,
posix: bool = False) -> None: ...
def __init__(self, instream=..., infile=...,
posix: bool = ...) -> None: ...
def get_token(self) -> str: ...
def push_token(self, tok: str) -> None: ...
def read_token(self) -> str: ...
def sourcehook(self, filename: str) -> Tuple[str, TextIO]: ...
# TODO argument types
def push_source(self, newstream: Any, newfile: Any = None) -> None: ...
def push_source(self, newstream: Any, newfile: Any = ...) -> None: ...
def pop_source(self) -> None: ...
def error_leader(self, infile: str = None,
lineno: int = None) -> None: ...
def error_leader(self, infile: str = ...,
lineno: int = ...) -> None: ...