aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/pydoc.py
diff options
context:
space:
mode:
authorJelle Zijlstra <jelle.zijlstra@gmail.com>2025-04-10 21:13:26 -0700
committerGitHub <noreply@github.com>2025-04-10 21:13:26 -0700
commit07b8d3117fdbc4e5be55aab0be428c278ec84e12 (patch)
tree31f37f65b1ebe9553f577586ba42e27588d22292 /Lib/pydoc.py
parente5f68fd29b3bd867207f23608a8dbc5759a056ed (diff)
downloadcpython-07b8d3117fdbc4e5be55aab0be428c278ec84e12.tar.gz
cpython-07b8d3117fdbc4e5be55aab0be428c278ec84e12.zip
gh-132261: Store annotations at hidden internal keys in the class dict (#132345)
Diffstat (limited to 'Lib/pydoc.py')
-rw-r--r--Lib/pydoc.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/pydoc.py b/Lib/pydoc.py
index 1839b88fec2..169194b99cb 100644
--- a/Lib/pydoc.py
+++ b/Lib/pydoc.py
@@ -330,7 +330,8 @@ def visiblename(name, all=None, obj=None):
'__date__', '__doc__', '__file__', '__spec__',
'__loader__', '__module__', '__name__', '__package__',
'__path__', '__qualname__', '__slots__', '__version__',
- '__static_attributes__', '__firstlineno__'}:
+ '__static_attributes__', '__firstlineno__',
+ '__annotate_func__', '__annotations_cache__'}:
return 0
# Private names are hidden, but special names are displayed.
if name.startswith('__') and name.endswith('__'): return 1