Skip to content

Restore comment in stubgen #11515

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 10, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion mypy/stubgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -1077,7 +1077,7 @@ def visit_import_from(self, o: ImportFrom) -> None:
self.record_name(alias or name)

if self._all_:
# Include import forms that import names defined in __all__.
# Include "import from"s that import names defined in __all__.
names = [name for name, alias in o.names
if name in self._all_ and alias is None and name not in IGNORED_DUNDERS]
exported_names.update(names)
Expand Down