Skip to content

Commit c4aa77c

Browse files
committed
[html.parser] Add scripting param for later patch releases
See python/cpython#137836 backports The backports were merged four days ago, and since then, a bugfix release has only been released for 3.9.
1 parent 4d7b6c6 commit c4aa77c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

stdlib/html/parser.pyi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ class HTMLParser(ParserBase):
99
# Added in Python 3.9.23, 3.10.18, 3.11.13, 3.12.11, 3.13.6
1010
RCDATA_CONTENT_ELEMENTS: Final[tuple[str, ...]]
1111

12-
def __init__(self, *, convert_charrefs: bool = True) -> None: ...
12+
# `scripting` parameter added in Python 3.9.25, 3.10.20, 3.11.15, 3.12.12, 3.13.10, 3.14.1
13+
def __init__(self, *, convert_charrefs: bool = True, scripting: bool = False) -> None: ...
1314
def feed(self, data: str) -> None: ...
1415
def close(self) -> None: ...
1516
def get_starttag_text(self) -> str | None: ...

0 commit comments

Comments
 (0)