mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-16 00:37:10 +08:00
Stdlib: add defaults for several functions that delegate kwargs to other functions at runtime (#9791)
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user