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

@@ -54,24 +54,24 @@ if sys.version_info >= (3, 11):
bufsize: Literal[0] = 0,
encoding: None = None,
errors: None = None,
text: Literal[False, None] = ...,
text: Literal[False, None] = None,
# These parameters are taken by subprocess.Popen, which this ultimately delegates to
executable: StrOrBytesPath | None = ...,
preexec_fn: Callable[[], Any] | None = ...,
close_fds: bool = ...,
cwd: StrOrBytesPath | None = ...,
env: subprocess._ENV | None = ...,
startupinfo: Any | None = ...,
creationflags: int = ...,
restore_signals: bool = ...,
start_new_session: bool = ...,
executable: StrOrBytesPath | None = None,
preexec_fn: Callable[[], Any] | None = None,
close_fds: bool = True,
cwd: StrOrBytesPath | None = None,
env: subprocess._ENV | None = None,
startupinfo: Any | None = None,
creationflags: int = 0,
restore_signals: bool = True,
start_new_session: bool = False,
pass_fds: Collection[int] = ...,
group: None | str | int = ...,
extra_groups: None | Collection[str | int] = ...,
user: None | str | int = ...,
umask: int = ...,
process_group: int | None = ...,
pipesize: int = ...,
group: None | str | int = None,
extra_groups: None | Collection[str | int] = None,
user: None | str | int = None,
umask: int = -1,
process_group: int | None = None,
pipesize: int = -1,
) -> Process: ...
async def create_subprocess_exec(
program: _ExecArg,
@@ -87,23 +87,23 @@ if sys.version_info >= (3, 11):
encoding: None = None,
errors: None = None,
# These parameters are taken by subprocess.Popen, which this ultimately delegates to
text: bool | None = ...,
executable: StrOrBytesPath | None = ...,
preexec_fn: Callable[[], Any] | None = ...,
close_fds: bool = ...,
cwd: StrOrBytesPath | None = ...,
env: subprocess._ENV | None = ...,
startupinfo: Any | None = ...,
creationflags: int = ...,
restore_signals: bool = ...,
start_new_session: bool = ...,
text: bool | None = None,
executable: StrOrBytesPath | None = None,
preexec_fn: Callable[[], Any] | None = None,
close_fds: bool = True,
cwd: StrOrBytesPath | None = None,
env: subprocess._ENV | None = None,
startupinfo: Any | None = None,
creationflags: int = 0,
restore_signals: bool = True,
start_new_session: bool = False,
pass_fds: Collection[int] = ...,
group: None | str | int = ...,
extra_groups: None | Collection[str | int] = ...,
user: None | str | int = ...,
umask: int = ...,
process_group: int | None = ...,
pipesize: int = ...,
group: None | str | int = None,
extra_groups: None | Collection[str | int] = None,
user: None | str | int = None,
umask: int = -1,
process_group: int | None = None,
pipesize: int = -1,
) -> Process: ...
elif sys.version_info >= (3, 10):
@@ -120,23 +120,23 @@ elif sys.version_info >= (3, 10):
bufsize: Literal[0] = 0,
encoding: None = None,
errors: None = None,
text: Literal[False, None] = ...,
text: Literal[False, None] = None,
# These parameters are taken by subprocess.Popen, which this ultimately delegates to
executable: StrOrBytesPath | None = ...,
preexec_fn: Callable[[], Any] | None = ...,
close_fds: bool = ...,
cwd: StrOrBytesPath | None = ...,
env: subprocess._ENV | None = ...,
startupinfo: Any | None = ...,
creationflags: int = ...,
restore_signals: bool = ...,
start_new_session: bool = ...,
executable: StrOrBytesPath | None = None,
preexec_fn: Callable[[], Any] | None = None,
close_fds: bool = True,
cwd: StrOrBytesPath | None = None,
env: subprocess._ENV | None = None,
startupinfo: Any | None = None,
creationflags: int = 0,
restore_signals: bool = True,
start_new_session: bool = False,
pass_fds: Collection[int] = ...,
group: None | str | int = ...,
extra_groups: None | Collection[str | int] = ...,
user: None | str | int = ...,
umask: int = ...,
pipesize: int = ...,
group: None | str | int = None,
extra_groups: None | Collection[str | int] = None,
user: None | str | int = None,
umask: int = -1,
pipesize: int = -1,
) -> Process: ...
async def create_subprocess_exec(
program: _ExecArg,
@@ -152,22 +152,22 @@ elif sys.version_info >= (3, 10):
encoding: None = None,
errors: None = None,
# These parameters are taken by subprocess.Popen, which this ultimately delegates to
text: bool | None = ...,
executable: StrOrBytesPath | None = ...,
preexec_fn: Callable[[], Any] | None = ...,
close_fds: bool = ...,
cwd: StrOrBytesPath | None = ...,
env: subprocess._ENV | None = ...,
startupinfo: Any | None = ...,
creationflags: int = ...,
restore_signals: bool = ...,
start_new_session: bool = ...,
text: bool | None = None,
executable: StrOrBytesPath | None = None,
preexec_fn: Callable[[], Any] | None = None,
close_fds: bool = True,
cwd: StrOrBytesPath | None = None,
env: subprocess._ENV | None = None,
startupinfo: Any | None = None,
creationflags: int = 0,
restore_signals: bool = True,
start_new_session: bool = False,
pass_fds: Collection[int] = ...,
group: None | str | int = ...,
extra_groups: None | Collection[str | int] = ...,
user: None | str | int = ...,
umask: int = ...,
pipesize: int = ...,
group: None | str | int = None,
extra_groups: None | Collection[str | int] = None,
user: None | str | int = None,
umask: int = -1,
pipesize: int = -1,
) -> Process: ...
else: # >= 3.9
@@ -185,22 +185,22 @@ else: # >= 3.9
bufsize: Literal[0] = 0,
encoding: None = None,
errors: None = None,
text: Literal[False, None] = ...,
text: Literal[False, None] = None,
# These parameters are taken by subprocess.Popen, which this ultimately delegates to
executable: StrOrBytesPath | None = ...,
preexec_fn: Callable[[], Any] | None = ...,
close_fds: bool = ...,
cwd: StrOrBytesPath | None = ...,
env: subprocess._ENV | None = ...,
startupinfo: Any | None = ...,
creationflags: int = ...,
restore_signals: bool = ...,
start_new_session: bool = ...,
executable: StrOrBytesPath | None = None,
preexec_fn: Callable[[], Any] | None = None,
close_fds: bool = True,
cwd: StrOrBytesPath | None = None,
env: subprocess._ENV | None = None,
startupinfo: Any | None = None,
creationflags: int = 0,
restore_signals: bool = True,
start_new_session: bool = False,
pass_fds: Collection[int] = ...,
group: None | str | int = ...,
extra_groups: None | Collection[str | int] = ...,
user: None | str | int = ...,
umask: int = ...,
group: None | str | int = None,
extra_groups: None | Collection[str | int] = None,
user: None | str | int = None,
umask: int = -1,
) -> Process: ...
async def create_subprocess_exec(
program: _ExecArg,
@@ -217,19 +217,19 @@ else: # >= 3.9
encoding: None = None,
errors: None = None,
# These parameters are taken by subprocess.Popen, which this ultimately delegates to
text: bool | None = ...,
executable: StrOrBytesPath | None = ...,
preexec_fn: Callable[[], Any] | None = ...,
close_fds: bool = ...,
cwd: StrOrBytesPath | None = ...,
env: subprocess._ENV | None = ...,
startupinfo: Any | None = ...,
creationflags: int = ...,
restore_signals: bool = ...,
start_new_session: bool = ...,
text: bool | None = None,
executable: StrOrBytesPath | None = None,
preexec_fn: Callable[[], Any] | None = None,
close_fds: bool = True,
cwd: StrOrBytesPath | None = None,
env: subprocess._ENV | None = None,
startupinfo: Any | None = None,
creationflags: int = 0,
restore_signals: bool = True,
start_new_session: bool = False,
pass_fds: Collection[int] = ...,
group: None | str | int = ...,
extra_groups: None | Collection[str | int] = ...,
user: None | str | int = ...,
umask: int = ...,
group: None | str | int = None,
extra_groups: None | Collection[str | int] = None,
user: None | str | int = None,
umask: int = -1,
) -> Process: ...

View File

@@ -90,7 +90,7 @@ class Distribution:
have_run: Incomplete
want_user_cfg: bool
def dump_option_dicts(
self, header: Incomplete | None = ..., commands: Incomplete | None = ..., indent: str = ...
self, header: Incomplete | None = None, commands: Incomplete | None = None, indent: str = ""
) -> None: ...
def find_config_files(self): ...
commands: Incomplete
@@ -102,8 +102,8 @@ class Distribution:
def get_command_list(self): ...
def get_command_packages(self): ...
def get_command_class(self, command): ...
def reinitialize_command(self, command, reinit_subcommands: int = ...): ...
def announce(self, msg, level=...) -> None: ...
def reinitialize_command(self, command, reinit_subcommands: int = 0): ...
def announce(self, msg, level=2) -> None: ...
def run_commands(self) -> None: ...
def run_command(self, command) -> None: ...
def has_pure_modules(self): ...

View File

@@ -116,74 +116,74 @@ class Logger(Filterer):
self,
msg: object,
*args: object,
exc_info: _ExcInfoType = ...,
stack_info: bool = ...,
stacklevel: int = ...,
extra: Mapping[str, object] | None = ...,
exc_info: _ExcInfoType = None,
stack_info: bool = False,
stacklevel: int = 1,
extra: Mapping[str, object] | None = None,
) -> None: ...
def info(
self,
msg: object,
*args: object,
exc_info: _ExcInfoType = ...,
stack_info: bool = ...,
stacklevel: int = ...,
extra: Mapping[str, object] | None = ...,
exc_info: _ExcInfoType = None,
stack_info: bool = False,
stacklevel: int = 1,
extra: Mapping[str, object] | None = None,
) -> None: ...
def warning(
self,
msg: object,
*args: object,
exc_info: _ExcInfoType = ...,
stack_info: bool = ...,
stacklevel: int = ...,
extra: Mapping[str, object] | None = ...,
exc_info: _ExcInfoType = None,
stack_info: bool = False,
stacklevel: int = 1,
extra: Mapping[str, object] | None = None,
) -> None: ...
def warn(
self,
msg: object,
*args: object,
exc_info: _ExcInfoType = ...,
stack_info: bool = ...,
stacklevel: int = ...,
extra: Mapping[str, object] | None = ...,
exc_info: _ExcInfoType = None,
stack_info: bool = False,
stacklevel: int = 1,
extra: Mapping[str, object] | None = None,
) -> None: ...
def error(
self,
msg: object,
*args: object,
exc_info: _ExcInfoType = ...,
stack_info: bool = ...,
stacklevel: int = ...,
extra: Mapping[str, object] | None = ...,
exc_info: _ExcInfoType = None,
stack_info: bool = False,
stacklevel: int = 1,
extra: Mapping[str, object] | None = None,
) -> None: ...
def exception(
self,
msg: object,
*args: object,
exc_info: _ExcInfoType = True,
stack_info: bool = ...,
stacklevel: int = ...,
extra: Mapping[str, object] | None = ...,
stack_info: bool = False,
stacklevel: int = 1,
extra: Mapping[str, object] | None = None,
) -> None: ...
def critical(
self,
msg: object,
*args: object,
exc_info: _ExcInfoType = ...,
stack_info: bool = ...,
stacklevel: int = ...,
extra: Mapping[str, object] | None = ...,
exc_info: _ExcInfoType = None,
stack_info: bool = False,
stacklevel: int = 1,
extra: Mapping[str, object] | None = None,
) -> None: ...
def log(
self,
level: int,
msg: object,
*args: object,
exc_info: _ExcInfoType = ...,
stack_info: bool = ...,
stacklevel: int = ...,
extra: Mapping[str, object] | None = ...,
exc_info: _ExcInfoType = None,
stack_info: bool = False,
stacklevel: int = 1,
extra: Mapping[str, object] | None = None,
) -> None: ...
def _log(
self,
@@ -200,66 +200,66 @@ class Logger(Filterer):
self,
msg: object,
*args: object,
exc_info: _ExcInfoType = ...,
stack_info: bool = ...,
extra: Mapping[str, object] | None = ...,
exc_info: _ExcInfoType = None,
stack_info: bool = False,
extra: Mapping[str, object] | None = None,
) -> None: ...
def info(
self,
msg: object,
*args: object,
exc_info: _ExcInfoType = ...,
stack_info: bool = ...,
extra: Mapping[str, object] | None = ...,
exc_info: _ExcInfoType = None,
stack_info: bool = False,
extra: Mapping[str, object] | None = None,
) -> None: ...
def warning(
self,
msg: object,
*args: object,
exc_info: _ExcInfoType = ...,
stack_info: bool = ...,
extra: Mapping[str, object] | None = ...,
exc_info: _ExcInfoType = None,
stack_info: bool = False,
extra: Mapping[str, object] | None = None,
) -> None: ...
def warn(
self,
msg: object,
*args: object,
exc_info: _ExcInfoType = ...,
stack_info: bool = ...,
extra: Mapping[str, object] | None = ...,
exc_info: _ExcInfoType = None,
stack_info: bool = False,
extra: Mapping[str, object] | None = None,
) -> None: ...
def error(
self,
msg: object,
*args: object,
exc_info: _ExcInfoType = ...,
stack_info: bool = ...,
extra: Mapping[str, object] | None = ...,
exc_info: _ExcInfoType = None,
stack_info: bool = False,
extra: Mapping[str, object] | None = None,
) -> None: ...
def critical(
self,
msg: object,
*args: object,
exc_info: _ExcInfoType = ...,
stack_info: bool = ...,
extra: Mapping[str, object] | None = ...,
exc_info: _ExcInfoType = None,
stack_info: bool = False,
extra: Mapping[str, object] | None = None,
) -> None: ...
def log(
self,
level: int,
msg: object,
*args: object,
exc_info: _ExcInfoType = ...,
stack_info: bool = ...,
extra: Mapping[str, object] | None = ...,
exc_info: _ExcInfoType = None,
stack_info: bool = False,
extra: Mapping[str, object] | None = None,
) -> None: ...
def exception(
self,
msg: object,
*args: object,
exc_info: _ExcInfoType = True,
stack_info: bool = ...,
extra: Mapping[str, object] | None = ...,
stack_info: bool = False,
extra: Mapping[str, object] | None = None,
) -> None: ...
def _log(
self,
@@ -610,102 +610,126 @@ if sys.version_info >= (3, 8):
def debug(
msg: object,
*args: object,
exc_info: _ExcInfoType = ...,
stack_info: bool = ...,
stacklevel: int = ...,
extra: Mapping[str, object] | None = ...,
exc_info: _ExcInfoType = None,
stack_info: bool = False,
stacklevel: int = 1,
extra: Mapping[str, object] | None = None,
) -> None: ...
def info(
msg: object,
*args: object,
exc_info: _ExcInfoType = ...,
stack_info: bool = ...,
stacklevel: int = ...,
extra: Mapping[str, object] | None = ...,
exc_info: _ExcInfoType = None,
stack_info: bool = False,
stacklevel: int = 1,
extra: Mapping[str, object] | None = None,
) -> None: ...
def warning(
msg: object,
*args: object,
exc_info: _ExcInfoType = ...,
stack_info: bool = ...,
stacklevel: int = ...,
extra: Mapping[str, object] | None = ...,
exc_info: _ExcInfoType = None,
stack_info: bool = False,
stacklevel: int = 1,
extra: Mapping[str, object] | None = None,
) -> None: ...
def warn(
msg: object,
*args: object,
exc_info: _ExcInfoType = ...,
stack_info: bool = ...,
stacklevel: int = ...,
extra: Mapping[str, object] | None = ...,
exc_info: _ExcInfoType = None,
stack_info: bool = False,
stacklevel: int = 1,
extra: Mapping[str, object] | None = None,
) -> None: ...
def error(
msg: object,
*args: object,
exc_info: _ExcInfoType = ...,
stack_info: bool = ...,
stacklevel: int = ...,
extra: Mapping[str, object] | None = ...,
exc_info: _ExcInfoType = None,
stack_info: bool = False,
stacklevel: int = 1,
extra: Mapping[str, object] | None = None,
) -> None: ...
def critical(
msg: object,
*args: object,
exc_info: _ExcInfoType = ...,
stack_info: bool = ...,
stacklevel: int = ...,
extra: Mapping[str, object] | None = ...,
exc_info: _ExcInfoType = None,
stack_info: bool = False,
stacklevel: int = 1,
extra: Mapping[str, object] | None = None,
) -> None: ...
def exception(
msg: object,
*args: object,
exc_info: _ExcInfoType = True,
stack_info: bool = ...,
stacklevel: int = ...,
extra: Mapping[str, object] | None = ...,
stack_info: bool = False,
stacklevel: int = 1,
extra: Mapping[str, object] | None = None,
) -> None: ...
def log(
level: int,
msg: object,
*args: object,
exc_info: _ExcInfoType = ...,
stack_info: bool = ...,
stacklevel: int = ...,
extra: Mapping[str, object] | None = ...,
exc_info: _ExcInfoType = None,
stack_info: bool = False,
stacklevel: int = 1,
extra: Mapping[str, object] | None = None,
) -> None: ...
else:
def debug(
msg: object, *args: object, exc_info: _ExcInfoType = ..., stack_info: bool = ..., extra: Mapping[str, object] | None = ...
msg: object,
*args: object,
exc_info: _ExcInfoType = None,
stack_info: bool = False,
extra: Mapping[str, object] | None = None,
) -> None: ...
def info(
msg: object, *args: object, exc_info: _ExcInfoType = ..., stack_info: bool = ..., extra: Mapping[str, object] | None = ...
msg: object,
*args: object,
exc_info: _ExcInfoType = None,
stack_info: bool = False,
extra: Mapping[str, object] | None = None,
) -> None: ...
def warning(
msg: object, *args: object, exc_info: _ExcInfoType = ..., stack_info: bool = ..., extra: Mapping[str, object] | None = ...
msg: object,
*args: object,
exc_info: _ExcInfoType = None,
stack_info: bool = False,
extra: Mapping[str, object] | None = None,
) -> None: ...
def warn(
msg: object, *args: object, exc_info: _ExcInfoType = ..., stack_info: bool = ..., extra: Mapping[str, object] | None = ...
msg: object,
*args: object,
exc_info: _ExcInfoType = None,
stack_info: bool = False,
extra: Mapping[str, object] | None = None,
) -> None: ...
def error(
msg: object, *args: object, exc_info: _ExcInfoType = ..., stack_info: bool = ..., extra: Mapping[str, object] | None = ...
msg: object,
*args: object,
exc_info: _ExcInfoType = None,
stack_info: bool = False,
extra: Mapping[str, object] | None = None,
) -> None: ...
def critical(
msg: object, *args: object, exc_info: _ExcInfoType = ..., stack_info: bool = ..., extra: Mapping[str, object] | None = ...
msg: object,
*args: object,
exc_info: _ExcInfoType = None,
stack_info: bool = False,
extra: Mapping[str, object] | None = None,
) -> None: ...
def exception(
msg: object,
*args: object,
exc_info: _ExcInfoType = True,
stack_info: bool = ...,
extra: Mapping[str, object] | None = ...,
stack_info: bool = False,
extra: Mapping[str, object] | None = None,
) -> None: ...
def log(
level: int,
msg: object,
*args: object,
exc_info: _ExcInfoType = ...,
stack_info: bool = ...,
extra: Mapping[str, object] | None = ...,
exc_info: _ExcInfoType = None,
stack_info: bool = False,
extra: Mapping[str, object] | None = None,
) -> None: ...
fatal = critical

File diff suppressed because it is too large Load Diff

View File

@@ -55,49 +55,49 @@ def wrap(
text: str,
width: int = 70,
*,
initial_indent: str = ...,
subsequent_indent: str = ...,
expand_tabs: bool = ...,
tabsize: int = ...,
replace_whitespace: bool = ...,
fix_sentence_endings: bool = ...,
break_long_words: bool = ...,
break_on_hyphens: bool = ...,
drop_whitespace: bool = ...,
initial_indent: str = "",
subsequent_indent: str = "",
expand_tabs: bool = True,
tabsize: int = 8,
replace_whitespace: bool = True,
fix_sentence_endings: bool = False,
break_long_words: bool = True,
break_on_hyphens: bool = True,
drop_whitespace: bool = True,
max_lines: int | None = None,
placeholder: str = ...,
placeholder: str = " [...]",
) -> list[str]: ...
def fill(
text: str,
width: int = 70,
*,
initial_indent: str = ...,
subsequent_indent: str = ...,
expand_tabs: bool = ...,
tabsize: int = ...,
replace_whitespace: bool = ...,
fix_sentence_endings: bool = ...,
break_long_words: bool = ...,
break_on_hyphens: bool = ...,
drop_whitespace: bool = ...,
initial_indent: str = "",
subsequent_indent: str = "",
expand_tabs: bool = True,
tabsize: int = 8,
replace_whitespace: bool = True,
fix_sentence_endings: bool = False,
break_long_words: bool = True,
break_on_hyphens: bool = True,
drop_whitespace: bool = True,
max_lines: int | None = None,
placeholder: str = ...,
placeholder: str = " [...]",
) -> str: ...
def shorten(
text: str,
width: int,
*,
initial_indent: str = ...,
subsequent_indent: str = ...,
expand_tabs: bool = ...,
tabsize: int = ...,
replace_whitespace: bool = ...,
fix_sentence_endings: bool = ...,
break_long_words: bool = ...,
break_on_hyphens: bool = ...,
drop_whitespace: bool = ...,
initial_indent: str = "",
subsequent_indent: str = "",
expand_tabs: bool = True,
tabsize: int = 8,
replace_whitespace: bool = True,
fix_sentence_endings: bool = False,
break_long_words: bool = True,
break_on_hyphens: bool = True,
drop_whitespace: bool = True,
# Omit `max_lines: int = None`, it is forced to 1 here.
placeholder: str = ...,
placeholder: str = " [...]",
) -> str: ...
def dedent(text: str) -> str: ...
def indent(text: str, prefix: str, predicate: Callable[[str], bool] | None = None) -> str: ...

View File

@@ -132,12 +132,12 @@ class TracebackException:
cls,
exc: BaseException,
*,
limit: int | None = ...,
lookup_lines: bool = ...,
capture_locals: bool = ...,
compact: bool = ...,
max_group_width: int = ...,
max_group_depth: int = ...,
limit: int | None = None,
lookup_lines: bool = True,
capture_locals: bool = False,
compact: bool = False,
max_group_width: int = 15,
max_group_depth: int = 10,
) -> Self: ...
elif sys.version_info >= (3, 10):
def __init__(
@@ -157,10 +157,10 @@ class TracebackException:
cls,
exc: BaseException,
*,
limit: int | None = ...,
lookup_lines: bool = ...,
capture_locals: bool = ...,
compact: bool = ...,
limit: int | None = None,
lookup_lines: bool = True,
capture_locals: bool = False,
compact: bool = False,
) -> Self: ...
else:
def __init__(
@@ -176,7 +176,7 @@ class TracebackException:
) -> None: ...
@classmethod
def from_exception(
cls, exc: BaseException, *, limit: int | None = ..., lookup_lines: bool = ..., capture_locals: bool = ...
cls, exc: BaseException, *, limit: int | None = None, lookup_lines: bool = True, capture_locals: bool = False
) -> Self: ...
def __eq__(self, other: object) -> bool: ...

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: