mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
beautifulsoup4: Accept void_element_close_prefix=None (#12621)
This commit is contained in:
@@ -11,14 +11,14 @@ class Formatter(EntitySubstitution):
|
||||
HTML_DEFAULTS: dict[str, set[str]]
|
||||
language: str | None
|
||||
entity_substitution: _EntitySubstitution
|
||||
void_element_close_prefix: str
|
||||
void_element_close_prefix: str | None
|
||||
cdata_containing_tags: list[str]
|
||||
empty_attributes_are_booleans: bool
|
||||
def __init__(
|
||||
self,
|
||||
language: str | None = None,
|
||||
entity_substitution: _EntitySubstitution | None = None,
|
||||
void_element_close_prefix: str = "/",
|
||||
void_element_close_prefix: str | None = "/",
|
||||
cdata_containing_tags: list[str] | None = None,
|
||||
empty_attributes_are_booleans: bool = False,
|
||||
indent: int = 1,
|
||||
@@ -32,7 +32,7 @@ class HTMLFormatter(Formatter):
|
||||
def __init__(
|
||||
self,
|
||||
entity_substitution: _EntitySubstitution | None = ...,
|
||||
void_element_close_prefix: str = ...,
|
||||
void_element_close_prefix: str | None = ...,
|
||||
cdata_containing_tags: list[str] | None = ...,
|
||||
empty_attributes_are_booleans: bool = False,
|
||||
indent: int = 1,
|
||||
@@ -43,7 +43,7 @@ class XMLFormatter(Formatter):
|
||||
def __init__(
|
||||
self,
|
||||
entity_substitution: _EntitySubstitution | None = ...,
|
||||
void_element_close_prefix: str = ...,
|
||||
void_element_close_prefix: str | None = ...,
|
||||
cdata_containing_tags: list[str] | None = ...,
|
||||
empty_attributes_are_booleans: bool = False,
|
||||
indent: int = 1,
|
||||
|
||||
Reference in New Issue
Block a user