Skip to content

Commit b7f5df1

Browse files
committed
Reinstate __all__ for pydoc
1 parent 9c508ae commit b7f5df1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Lib/types.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,3 +332,5 @@ def wrapped(*args, **kwargs):
332332
EllipsisType = type(Ellipsis)
333333
NoneType = type(None)
334334
NotImplementedType = type(NotImplemented)
335+
336+
__all__ = [n for n in globals() if not n.startswith('_')] # for pydoc

0 commit comments

Comments
 (0)