Skip to content

Commit 1db21c5

Browse files
authored
[html5lib] Add annotations for impliedTagToken function (#14709)
1 parent 9354f93 commit 1db21c5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

stubs/html5lib/html5lib/html5parser.pyi

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from _typeshed import Incomplete
2-
from typing import Literal, overload
2+
from typing import Any, Literal, overload
33
from xml.etree.ElementTree import Element
44

55
from ._inputstream import _InputStream
@@ -58,6 +58,8 @@ class HTMLParser:
5858

5959
def getPhases(debug): ...
6060
def adjust_attributes(token, replacements) -> None: ...
61-
def impliedTagToken(name, type: str = "EndTag", attributes=None, selfClosing: bool = False): ...
61+
def impliedTagToken(
62+
name: str, type: str = "EndTag", attributes: dict[str, Any] | None = None, selfClosing: bool = False
63+
) -> dict[str, Any]: ...
6264

6365
class ParseError(Exception): ...

0 commit comments

Comments
 (0)