Skip to content

Commit 7f2d948

Browse files
authored
[html5lib] Add annotations for several functions in htmll5parser.py (#14859)
1 parent 25f3f74 commit 7f2d948

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

stubs/html5lib/html5lib/html5parser.pyi

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,16 @@ class HTMLParser:
4848
def parse(self, stream: _InputStream, scripting: bool = ..., **kwargs): ...
4949
def parseFragment(self, stream: _InputStream, *args, **kwargs): ...
5050
def parseError(self, errorcode: str = "XXX-undefined-error", datavars=None) -> None: ...
51-
def adjustMathMLAttributes(self, token) -> None: ...
52-
def adjustSVGAttributes(self, token) -> None: ...
53-
def adjustForeignAttributes(self, token) -> None: ...
54-
def reparseTokenNormal(self, token) -> None: ...
51+
def adjustMathMLAttributes(self, token: dict[str, Any]) -> None: ...
52+
def adjustSVGAttributes(self, token: dict[str, Any]) -> None: ...
53+
def adjustForeignAttributes(self, token: dict[str, Any]) -> None: ...
54+
def reparseTokenNormal(self, token: dict[str, Any]) -> None: ...
5555
def resetInsertionMode(self) -> None: ...
5656
originalPhase: Incomplete
5757
def parseRCDataRawtext(self, token, contentType) -> None: ...
5858

5959
def getPhases(debug): ...
60-
def adjust_attributes(token, replacements) -> None: ...
60+
def adjust_attributes(token: dict[str, Any], replacements: dict[str, Any]) -> None: ...
6161
def impliedTagToken(
6262
name: str, type: str = "EndTag", attributes: dict[str, Any] | None = None, selfClosing: bool = False
6363
) -> dict[str, Any]: ...

0 commit comments

Comments
 (0)