Skip to content

Fix stdlib stubtest for 3.13.6 patch release #14543

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Aug 7, 2025
Merged
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
6 changes: 4 additions & 2 deletions stdlib/html/parser.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ __all__ = ["HTMLParser"]

class HTMLParser(ParserBase):
CDATA_CONTENT_ELEMENTS: Final[tuple[str, ...]]
if sys.version_info >= (3, 14):
if sys.version_info >= (3, 13):
# Added in 3.13.6
RCDATA_CONTENT_ELEMENTS: Final[tuple[str, ...]]

def __init__(self, *, convert_charrefs: bool = True) -> None: ...
Expand All @@ -31,7 +32,8 @@ class HTMLParser(ParserBase):
def parse_html_declaration(self, i: int) -> int: ... # undocumented
def parse_pi(self, i: int) -> int: ... # undocumented
def parse_starttag(self, i: int) -> int: ... # undocumented
if sys.version_info >= (3, 14):
if sys.version_info >= (3, 13):
# `escapable` parameter added in 3.13.6
def set_cdata_mode(self, elem: str, *, escapable: bool = False) -> None: ... # undocumented
else:
def set_cdata_mode(self, elem: str) -> None: ... # undocumented
Expand Down
Loading