chiark / gitweb /
docummentation/python: adapt __weakref__ ignore to Python 3.11.
authorVladimír Vondruš <mosra@centrum.cz>
Wed, 21 Aug 2024 11:50:08 +0000 (13:50 +0200)
committerVladimír Vondruš <mosra@centrum.cz>
Wed, 21 Aug 2024 11:54:54 +0000 (13:54 +0200)
documentation/python.py

index 5933db3a153c2240c4e93febd21a43fb788cd085..0b1927f72f91a1ccd07cb9d3d812536a08c16afd 100755 (executable)
@@ -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 = """