summaryrefslogtreecommitdiffstats
path: root/Lib/pydoc.py
diff options
context:
space:
mode:
authorIrit Katriel <1055913+iritkatriel@users.noreply.github.com>2024-03-26 15:18:17 (GMT)
committerGitHub <noreply@github.com>2024-03-26 15:18:17 (GMT)
commit79be75735c9d77972112cecc8d7e1af28c176ed0 (patch)
tree243cf7ff18185b4aeb4f213c4571bc7e26793116 /Lib/pydoc.py
parent70969d53a77a8a190c40a30419e772bc874a4f62 (diff)
downloadcpython-79be75735c9d77972112cecc8d7e1af28c176ed0.zip
cpython-79be75735c9d77972112cecc8d7e1af28c176ed0.tar.gz
cpython-79be75735c9d77972112cecc8d7e1af28c176ed0.tar.bz2
gh-115775: Compiler adds __static_attributes__ field to classes (#115913)
Diffstat (limited to 'Lib/pydoc.py')
-rwxr-xr-xLib/pydoc.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/pydoc.py b/Lib/pydoc.py
index 08fd7ab..d9cf03f 100755
--- a/Lib/pydoc.py
+++ b/Lib/pydoc.py
@@ -313,7 +313,8 @@ def visiblename(name, all=None, obj=None):
if name in {'__author__', '__builtins__', '__cached__', '__credits__',
'__date__', '__doc__', '__file__', '__spec__',
'__loader__', '__module__', '__name__', '__package__',
- '__path__', '__qualname__', '__slots__', '__version__'}:
+ '__path__', '__qualname__', '__slots__', '__version__',
+ '__static_attributes__'}:
return 0
# Private names are hidden, but special names are displayed.
if name.startswith('__') and name.endswith('__'): return 1