Skip to content

Commit 7beb4f9

Browse files
Issue #23504: Added an __all__ to the types module.
1 parent 92ce1b4 commit 7beb4f9

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

Lib/types.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,3 +156,6 @@ def deleter(self, fdel):
156156
result = type(self)(self.fget, self.fset, fdel, self.__doc__)
157157
result.overwrite_doc = self.overwrite_doc
158158
return result
159+
160+
161+
__all__ = [n for n in globals() if n[:1] != '_']

Misc/NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ Core and Builtins
1313
Library
1414
-------
1515

16+
- Issue #23504: Added an __all__ to the types module.
17+
1618
- Issue #20204: Added the __module__ attribute to _tkinter classes.
1719

1820
- Issue #23521: Corrected pure python implementation of timedelta division.

0 commit comments

Comments
 (0)