bs4: update for 4.12.1 (#10015)

This commit is contained in:
Shantanu
2023-04-06 00:05:21 -07:00
committed by GitHub
parent e7a0f71790
commit 1c0500a570
2 changed files with 6 additions and 2 deletions

View File

@@ -32,7 +32,7 @@ class BeautifulSoup(Tag):
element_classes: Any
builder: TreeBuilder
is_xml: bool
known_xml: bool
known_xml: bool | None
parse_only: SoupStrainer | None
markup: str
def __init__(

View File

@@ -299,7 +299,11 @@ class Tag(PageElement):
errors: str = "xmlcharrefreplace",
) -> bytes: ...
def decode(
self, indent_level: int | None = None, eventual_encoding: str = "utf-8", formatter: str | Formatter = "minimal"
self,
indent_level: int | None = None,
eventual_encoding: str = "utf-8",
formatter: str | Formatter = "minimal",
iterator: Iterator[PageElement] | None = None,
) -> str: ...
@overload
def prettify(self, encoding: str, formatter: str | Formatter = "minimal") -> bytes: ...