stdlib: add argument default values (#9501)

This commit is contained in:
Jelle Zijlstra
2023-01-18 00:37:34 -08:00
committed by GitHub
parent 6cb934291f
commit ddfaca3200
272 changed files with 2529 additions and 2467 deletions

View File

@@ -8,7 +8,7 @@ if sys.version_info >= (3, 8):
else:
__all__ = ["shlex", "split", "quote"]
def split(s: str, comments: bool = ..., posix: bool = ...) -> list[str]: ...
def split(s: str, comments: bool = False, posix: bool = True) -> list[str]: ...
if sys.version_info >= (3, 8):
def join(split_command: Iterable[str]) -> str: ...
@@ -34,17 +34,17 @@ class shlex(Iterable[str]):
def punctuation_chars(self) -> str: ...
def __init__(
self,
instream: str | TextIO | None = ...,
infile: str | None = ...,
posix: bool = ...,
punctuation_chars: bool | str = ...,
instream: str | TextIO | None = None,
infile: str | None = None,
posix: bool = False,
punctuation_chars: bool | str = False,
) -> None: ...
def get_token(self) -> str: ...
def push_token(self, tok: str) -> None: ...
def read_token(self) -> str: ...
def sourcehook(self, newfile: str) -> tuple[str, TextIO]: ...
def push_source(self, newstream: str | TextIO, newfile: str | None = ...) -> None: ...
def push_source(self, newstream: str | TextIO, newfile: str | None = None) -> None: ...
def pop_source(self) -> None: ...
def error_leader(self, infile: str | None = ..., lineno: int | None = ...) -> None: ...
def error_leader(self, infile: str | None = None, lineno: int | None = None) -> None: ...
def __iter__(self: Self) -> Self: ...
def __next__(self) -> str: ...