Skip to content

Commit f0bd1eb

Browse files
authored
Stop lazy imported modules from appearing in __all__
1 parent 1da6e7b commit f0bd1eb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Lib/tkinter/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5104,6 +5104,7 @@ def _test():
51045104

51055105
__all__ = [name for name, obj in globals().items()
51065106
if not name.startswith('_') and not isinstance(obj, types.ModuleType)
5107+
and not isinstance(obj, types.LazyImportType)
51075108
and name not in {'wantobjects'}]
51085109

51095110
if __name__ == '__main__':

0 commit comments

Comments
 (0)