From 0e5161ff17ebf3550bbc0cc99ef81ad7b7d8f80e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Wed, 21 Aug 2024 13:50:08 +0200 Subject: [PATCH] docummentation/python: adapt __weakref__ ignore to Python 3.11. --- documentation/python.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/documentation/python.py b/documentation/python.py index 5933db3a..0b1927f7 100755 --- a/documentation/python.py +++ b/documentation/python.py @@ -330,7 +330,9 @@ if sys.version_info >= (3, 11): }) _filtered_builtin_properties = set([ - ('__weakref__', "list of weak references to the object (if defined)") + # (if defined) is gone in https://github.com/python/cpython/issues/112266 + # which is backported all the way to 3.11 + ('__weakref__', "list of weak references to the object" if sys.version_info >= (3, 11) else "list of weak references to the object (if defined)") ]) _automatically_created_by_attrs = """ -- 2.30.2