From 5544aeb7cf055254bae4be3581aaf08a7daafbff Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Thu, 26 Sep 2024 11:17:42 +0200 Subject: [PATCH] documentation/python: further expand the list of ignored dunder names. --- documentation/python.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/documentation/python.py b/documentation/python.py index f560c4ce..dddc9321 100755 --- a/documentation/python.py +++ b/documentation/python.py @@ -351,8 +351,10 @@ if sys.version_info >= (3, 11): }) _filtered_builtin_properties = set([ + # https://github.com/python/cpython/blob/0d9d56c4e4246495f506f7fb319548fb105b535b/Objects/typeobject.c#L3553 # (if defined) is gone in https://github.com/python/cpython/issues/112266 # which is backported all the way to 3.11 + ('__dict__', "dictionary for instance variables" if sys.version_info >= (3, 11) else "dictionary for instance variables (if defined)"), ('__weakref__', "list of weak references to the object" if sys.version_info >= (3, 11) else "list of weak references to the object (if defined)") ]) -- 2.30.2