From 0081260bd55c25847d8cf6aac929fc80f4f58fd3 Mon Sep 17 00:00:00 2001 From: Michael Howitz Date: Fri, 12 Apr 2024 07:45:23 +0200 Subject: [PATCH] Ignore `__static_attributes__` added in Python 3.13a6. Fixes #289. --- CHANGES.rst | 2 +- src/zope/interface/interface.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGES.rst b/CHANGES.rst index ef755a75..61299de5 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -5,7 +5,7 @@ 6.3 (unreleased) ================ -- Nothing changed yet. +- Add preliminary support for Python 3.13 as of 3.13a6. 6.2 (2024-02-16) diff --git a/src/zope/interface/interface.py b/src/zope/interface/interface.py index 8143daf3..733e3954 100644 --- a/src/zope/interface/interface.py +++ b/src/zope/interface/interface.py @@ -799,6 +799,9 @@ def update_value(aname, aval): '__qualname__', # __annotations__: PEP 3107 (Python 3.0+) '__annotations__', + # __static_attributes__: Python 3.13a6+ + # https://github.com/python/cpython/pull/115913 + '__static_attributes__', ) and aval is not _decorator_non_return }