From 1db21c5a570e562b1252de48002370c963df2d45 Mon Sep 17 00:00:00 2001 From: Spider84pr Date: Tue, 16 Sep 2025 15:08:02 +0300 Subject: [PATCH] [html5lib] Add annotations for impliedTagToken function (#14709) --- stubs/html5lib/html5lib/html5parser.pyi | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/stubs/html5lib/html5lib/html5parser.pyi b/stubs/html5lib/html5lib/html5parser.pyi index ca2bd4f31..804c10d58 100644 --- a/stubs/html5lib/html5lib/html5parser.pyi +++ b/stubs/html5lib/html5lib/html5parser.pyi @@ -1,5 +1,5 @@ from _typeshed import Incomplete -from typing import Literal, overload +from typing import Any, Literal, overload from xml.etree.ElementTree import Element from ._inputstream import _InputStream @@ -58,6 +58,8 @@ class HTMLParser: def getPhases(debug): ... def adjust_attributes(token, replacements) -> None: ... -def impliedTagToken(name, type: str = "EndTag", attributes=None, selfClosing: bool = False): ... +def impliedTagToken( + name: str, type: str = "EndTag", attributes: dict[str, Any] | None = None, selfClosing: bool = False +) -> dict[str, Any]: ... class ParseError(Exception): ...