mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-07 05:54:02 +08:00
[html.parser] Add scripting param for later patch releases (#14979)
This commit is contained in:
@@ -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
|
||||
# ==========================================
|
||||
|
||||
@@ -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
|
||||
# =============================================================
|
||||
|
||||
@@ -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
|
||||
# =============================================================
|
||||
|
||||
@@ -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
|
||||
# =============================================================
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
# =======
|
||||
# <= 3.14
|
||||
# =======
|
||||
|
||||
# Added in Python 3.13.10 (parameter `scripting`)
|
||||
html.parser.HTMLParser.__init__
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
# =======
|
||||
# <= 3.14
|
||||
# =======
|
||||
|
||||
# Added in Python 3.14.1 (parameter `scripting`)
|
||||
html.parser.HTMLParser.__init__
|
||||
@@ -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
|
||||
# ============================================
|
||||
|
||||
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user