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

@@ -30,7 +30,7 @@ punctuation: LiteralString
printable: LiteralString
whitespace: LiteralString
def capwords(s: StrOrLiteralStr, sep: StrOrLiteralStr | None = ...) -> StrOrLiteralStr: ...
def capwords(s: StrOrLiteralStr, sep: StrOrLiteralStr | None = None) -> StrOrLiteralStr: ...
if sys.version_info >= (3, 9):
_TemplateMetaclass: TypeAlias = type
@@ -71,7 +71,7 @@ class Formatter:
kwargs: Mapping[str, Any],
used_args: set[int | str],
recursion_depth: int,
auto_arg_index: int = ...,
auto_arg_index: int = 0,
) -> tuple[str, int]: ...
def parse(
self, format_string: StrOrLiteralStr