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
5 changes: 5 additions & 0 deletions stdlib/@tests/stubtest_allowlists/darwin-py311.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ html.parser.HTMLParser.__init__ # parameter `scripting`
pyexpat.XMLParserType.SetAllocTrackerActivationThreshold
pyexpat.XMLParserType.SetAllocTrackerMaximumAmplification

# Incompatible changes introduced in Python 3.11.18
# (Remove once 3.11.18 becomes available for GitHub Actions)
email._header_value_parser.Terminal.contains_token_type
email._header_value_parser.TokenList.contains_token_type


# ============
# 3.11 to 3.12
Expand Down
5 changes: 5 additions & 0 deletions stdlib/@tests/stubtest_allowlists/darwin-py312.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ html.parser.HTMLParser.__init__ # parameter `scripting`
pyexpat.XMLParserType.SetAllocTrackerActivationThreshold
pyexpat.XMLParserType.SetAllocTrackerMaximumAmplification

# Incompatible changes introduced in Python 3.12.16
# (Remove once 3.12.16 becomes available for GitHub Actions)
email._header_value_parser.Terminal.contains_token_type
email._header_value_parser.TokenList.contains_token_type


# ============
# 3.11 to 3.12
Expand Down
10 changes: 10 additions & 0 deletions stdlib/@tests/stubtest_allowlists/darwin-py313.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
# =========
# Temporary
# =========

# Incompatible changes introduced in Python 3.13.18
# (Remove once 3.13.18 becomes available for GitHub Actions)
email._header_value_parser.Terminal.contains_token_type
email._header_value_parser.TokenList.contains_token_type


# =============
# 3.13 and 3.14
# =============
Expand Down
5 changes: 5 additions & 0 deletions stdlib/@tests/stubtest_allowlists/win32-py311.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ html.parser.HTMLParser.__init__ # parameter `scripting`
pyexpat.XMLParserType.SetAllocTrackerActivationThreshold
pyexpat.XMLParserType.SetAllocTrackerMaximumAmplification

# Incompatible changes introduced in Python 3.11.18
# (Remove once 3.11.18 becomes available for GitHub Actions)
email._header_value_parser.Terminal.contains_token_type
email._header_value_parser.TokenList.contains_token_type


# =============================================================
# Allowlist entries that cannot or should not be fixed; <= 3.12
Expand Down
5 changes: 5 additions & 0 deletions stdlib/@tests/stubtest_allowlists/win32-py312.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ html.parser.HTMLParser.__init__ # parameter `scripting`
pyexpat.XMLParserType.SetAllocTrackerActivationThreshold
pyexpat.XMLParserType.SetAllocTrackerMaximumAmplification

# Incompatible changes introduced in Python 3.12.16
# (Remove once 3.12.16 becomes available for GitHub Actions)
email._header_value_parser.Terminal.contains_token_type
email._header_value_parser.TokenList.contains_token_type


# =======
# >= 3.12
Expand Down
10 changes: 10 additions & 0 deletions stdlib/@tests/stubtest_allowlists/win32-py313.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
# =========
# Temporary
# =========

# Incompatible changes introduced in Python 3.13.18
# (Remove once 3.13.18 becomes available for GitHub Actions)
email._header_value_parser.Terminal.contains_token_type
email._header_value_parser.TokenList.contains_token_type


# =======
# >= 3.12
# =======
Expand Down
8 changes: 4 additions & 4 deletions stdlib/email/_header_value_parser.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ class TokenList(list[TokenList | Terminal]):
def as_ew_allowed(self) -> bool: ...
@property
def comments(self) -> list[str]: ...
if sys.version_info >= (3, 14):
# Added in Python 3.14.9 and 3.15.1.
if sys.version_info >= (3, 11):
# Added in Python 3.11.18, 3.12.16, 3.13.18, 3.14.9 and 3.15.1.
def contains_token_type(self, *token_types: str | None) -> bool: ...

def fold(self, *, policy: Policy) -> str: ...
Expand Down Expand Up @@ -343,8 +343,8 @@ class Terminal(str):
def pop_trailing_ws(self) -> None: ...
@property
def comments(self) -> list[str]: ...
if sys.version_info >= (3, 14):
# Added in Python 3.14.9 and 3.15.1.
if sys.version_info >= (3, 11):
# Added in Python 3.11.18, 3.12.16, 3.13.18, 3.14.9 and 3.15.1.
def contains_token_type(self, *token_types: str | None) -> bool: ...

def __getnewargs__(self) -> tuple[str, str]: ... # type: ignore[override]
Expand Down
Loading