diff --git a/stubs/html5lib/html5lib/html5parser.pyi b/stubs/html5lib/html5lib/html5parser.pyi index 804c10d58d9d..ad3adaca4eb6 100644 --- a/stubs/html5lib/html5lib/html5parser.pyi +++ b/stubs/html5lib/html5lib/html5parser.pyi @@ -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]: ...