[html5lib] Add annotations for several functions in htmll5parser.py (#14859)

This commit is contained in:
Spider84pr
2025-10-13 14:12:47 +03:00
committed by GitHub
parent 25f3f74ad3
commit 7f2d9484f3
+5 -5
View File
@@ -48,16 +48,16 @@ class HTMLParser:
def parse(self, stream: _InputStream, scripting: bool = ..., **kwargs): ...
def parseFragment(self, stream: _InputStream, *args, **kwargs): ...
def parseError(self, errorcode: str = "XXX-undefined-error", datavars=None) -> None: ...
def adjustMathMLAttributes(self, token) -> None: ...
def adjustSVGAttributes(self, token) -> None: ...
def adjustForeignAttributes(self, token) -> None: ...
def reparseTokenNormal(self, token) -> None: ...
def adjustMathMLAttributes(self, token: dict[str, Any]) -> None: ...
def adjustSVGAttributes(self, token: dict[str, Any]) -> None: ...
def adjustForeignAttributes(self, token: dict[str, Any]) -> None: ...
def reparseTokenNormal(self, token: dict[str, Any]) -> None: ...
def resetInsertionMode(self) -> None: ...
originalPhase: Incomplete
def parseRCDataRawtext(self, token, contentType) -> None: ...
def getPhases(debug): ...
def adjust_attributes(token, replacements) -> None: ...
def adjust_attributes(token: dict[str, Any], replacements: dict[str, Any]) -> None: ...
def impliedTagToken(
name: str, type: str = "EndTag", attributes: dict[str, Any] | None = None, selfClosing: bool = False
) -> dict[str, Any]: ...