From d69c5d3f2e09f483bce1f927da72bc9e6f8e6008 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=92=D0=BB=D0=B0=D0=B4=D0=B8=D1=81=D0=BB=D0=B0=D0=B2=20?= =?UTF-8?q?=D0=98=D0=B2=D1=87=D0=B5=D0=BD=D0=BA=D0=BE=D0=B2?= Date: Fri, 10 Oct 2025 04:30:42 +0300 Subject: [PATCH] Added annotations fors several functions in html5lib/htmll5parser.py --- stubs/html5lib/html5lib/html5parser.pyi | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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]: ...