Skip to content

Commit 9c508ae

Browse files
committed
Remove types.__all__
`from types import *` will ignore underscore-prefixed names by default, so defining `__all__` doesn't add anything.
1 parent 04d9b4e commit 9c508ae

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

Lib/types.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,5 +332,3 @@ 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('_')]

0 commit comments

Comments
 (0)