From ef7b8d44fe8d9b8ad25dde9448838a8fabce8766 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Wed, 28 Jun 2023 15:14:51 +0200 Subject: [PATCH] documentation/python: ignore a new useless builtin on 3.11. --- documentation/python.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/documentation/python.py b/documentation/python.py index ee9fee2d..00faac68 100755 --- a/documentation/python.py +++ b/documentation/python.py @@ -323,6 +323,12 @@ else: ('__sizeof__', "__sizeof__() -> int\nsize of object in memory, in bytes") }) +# Python 3.11 adds another +if sys.version_info >= (3, 11): + _filtered_builtin_functions.update({ + ('__getstate__', "Helper for pickle.") + }) + _filtered_builtin_properties = set([ ('__weakref__', "list of weak references to the object (if defined)") ]) -- 2.30.2