8000 Make the daily test not fail tonight on Python 3.13 (#367) · python/typing_extensions@a1697b4 · GitHub
[go: up one dir, main page]

Skip to content

Commit a1697b4

Browse files
authored
Make the daily test not fail tonight on Python 3.13 (#367)
it's about to fail because of python/cpython#115913
1 parent 66e0a1f commit a1697b4

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# Unreleased
2+
3+
- Fix tests on Python 3.13.0a6. 3.13.0a6 adds a new
4+
`__static_attributes__` attribute to all classes in Python,
5+
which broke some assumptions made by the implementation of
6+
`typing_extenions.Protocol`.
7+
18
# Release 4.11.0 (April 5, 2024)
29

310
This feature release provides improvements to various recently

src/typing_extensions.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,9 @@ def clear_overloads():
442442
if sys.version_info >= (3, 12):
443443
_EXCLUDED_ATTRS.add("__type_params__")
444444

445+
if sys.version_info >= (3, 13):
446+
_EXCLUDED_ATTRS.add("__static_attributes__")
447+
445448
_EXCLUDED_ATTRS = frozenset(_EXCLUDED_ATTRS)
446449

447450

0 commit comments

Comments
 (0)
0