Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions stdlib/@tests/stubtest_allowlists/darwin.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@
(fcntl.F_SETLEASE)? # GNU extension


# =======
# <= 3.14
# =======

# Added in Python 3.9.25, 3.10.20, 3.11.15, 3.12.13, 3.13.10, 3.14.1 (parameter `scripting`)
html.parser.HTMLParser.__init__


# ==========================================
# Modules that do not exist on MacOS systems
# ==========================================
Expand Down
8 changes: 8 additions & 0 deletions stdlib/@tests/stubtest_allowlists/linux-py310.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# =======
# <= 3.14
# =======

# Added in Python 3.10.20 (parameter `scripting`)
html.parser.HTMLParser.__init__


# =============================================================
# Allowlist entries that cannot or should not be fixed; <= 3.12
# =============================================================
Expand Down
8 changes: 8 additions & 0 deletions stdlib/@tests/stubtest_allowlists/linux-py311.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# =======
# <= 3.14
# =======

# Added in Python 3.11.15 (parameter `scripting`)
html.parser.HTMLParser.__init__


# =============================================================
# Allowlist entries that cannot or should not be fixed; <= 3.12
# =============================================================
Expand Down
8 changes: 8 additions & 0 deletions stdlib/@tests/stubtest_allowlists/linux-py312.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# =======
# <= 3.14
# =======

# Added in Python 3.12.13 (parameter `scripting`)
html.parser.HTMLParser.__init__


# =============================================================
# Allowlist entries that cannot or should not be fixed; <= 3.12
# =============================================================
Expand Down
6 changes: 6 additions & 0 deletions stdlib/@tests/stubtest_allowlists/linux-py313.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# =======
# <= 3.14
# =======

# Added in Python 3.13.10 (parameter `scripting`)
html.parser.HTMLParser.__init__
6 changes: 6 additions & 0 deletions stdlib/@tests/stubtest_allowlists/linux-py314.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# =======
# <= 3.14
# =======

# Added in Python 3.14.1 (parameter `scripting`)
html.parser.HTMLParser.__init__
8 changes: 8 additions & 0 deletions stdlib/@tests/stubtest_allowlists/win32.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@ _winapi.OpenFileMapping
_winapi.VirtualQuerySize


# =======
# <= 3.14
# =======

# Added in Python 3.9.25, 3.10.20, 3.11.15, 3.12.13, 3.13.10, 3.14.1 (parameter `scripting`)
html.parser.HTMLParser.__init__


# ============================================
# Modules that do not exist on Windows systems
# ============================================
Expand Down
3 changes: 2 additions & 1 deletion stdlib/html/parser.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ class HTMLParser(ParserBase):
# Added in Python 3.9.23, 3.10.18, 3.11.13, 3.12.11, 3.13.6
RCDATA_CONTENT_ELEMENTS: Final[tuple[str, ...]]

def __init__(self, *, convert_charrefs: bool = True) -> None: ...
# `scripting` parameter added in Python 3.9.25, 3.10.20, 3.11.15, 3.12.13, 3.13.10, 3.14.1
def __init__(self, *, convert_charrefs: bool = True, scripting: bool = False) -> None: ...
def feed(self, data: str) -> None: ...
def close(self) -> None: ...
def get_starttag_text(self) -> str | None: ...
Expand Down