Stdlib: add defaults for several functions that delegate kwargs to other functions at runtime (#9791)

This commit is contained in:
Alex Waygood
2023-02-22 07:31:25 +00:00
committed by GitHub
parent 6ac15185fb
commit fbc092b4cd
7 changed files with 1394 additions and 1370 deletions

View File

@@ -58,13 +58,13 @@ if sys.version_info >= (3, 8):
*,
out: None = None,
from_file: _FileRead | None = None,
with_comments: bool = ...,
strip_text: bool = ...,
rewrite_prefixes: bool = ...,
qname_aware_tags: Iterable[str] | None = ...,
qname_aware_attrs: Iterable[str] | None = ...,
exclude_attrs: Iterable[str] | None = ...,
exclude_tags: Iterable[str] | None = ...,
with_comments: bool = False,
strip_text: bool = False,
rewrite_prefixes: bool = False,
qname_aware_tags: Iterable[str] | None = None,
qname_aware_attrs: Iterable[str] | None = None,
exclude_attrs: Iterable[str] | None = None,
exclude_tags: Iterable[str] | None = None,
) -> str: ...
@overload
def canonicalize(
@@ -72,13 +72,13 @@ if sys.version_info >= (3, 8):
*,
out: SupportsWrite[str],
from_file: _FileRead | None = None,
with_comments: bool = ...,
strip_text: bool = ...,
rewrite_prefixes: bool = ...,
qname_aware_tags: Iterable[str] | None = ...,
qname_aware_attrs: Iterable[str] | None = ...,
exclude_attrs: Iterable[str] | None = ...,
exclude_tags: Iterable[str] | None = ...,
with_comments: bool = False,
strip_text: bool = False,
rewrite_prefixes: bool = False,
qname_aware_tags: Iterable[str] | None = None,
qname_aware_attrs: Iterable[str] | None = None,
exclude_attrs: Iterable[str] | None = None,
exclude_tags: Iterable[str] | None = None,
) -> None: ...
class Element: