From 4333d0d10e9b52118e88a8be0edada2f8675f584 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, 12 Sep 2025 23:29:36 +0300 Subject: [PATCH 1/2] Added annotation for impliedTagToken function --- stubs/html5lib/html5lib/html5parser.pyi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stubs/html5lib/html5lib/html5parser.pyi b/stubs/html5lib/html5lib/html5parser.pyi index ca2bd4f31e2b..8ecdd3de6c6e 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 Literal, overload, Any from xml.etree.ElementTree import Element from ._inputstream import _InputStream @@ -58,6 +58,6 @@ 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): ... From 6079260fbc8f3ba26a80251759e56e2c7938536f Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 12 Sep 2025 20:36:20 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks --- 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 8ecdd3de6c6e..804c10d58d9d 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, Any +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: str, type: str = "EndTag", attributes: dict[str, Any] | None = None, selfClosing: bool = False +) -> dict[str, Any]: ... -def impliedTagToken(name: str, type: str = "EndTag", attributes: dict[str, Any] | None = None, selfClosing: bool = False) -> dict[str, Any]: ... class ParseError(Exception): ...