From 81ed48d29b5879586688d5088a866761255b8b94 Mon Sep 17 00:00:00 2001 From: Shantanu <12621235+hauntsaninja@users.noreply.github.com> Date: Wed, 10 Nov 2021 11:08:14 -0800 Subject: [PATCH] Restore comment in stubgen As pointed out by @pranavrajpal in https://github.com/python/mypy/pull/11498#discussion_r746886480 --- mypy/stubgen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mypy/stubgen.py b/mypy/stubgen.py index 56e0fcb27763..5518691b35fb 100755 --- a/mypy/stubgen.py +++ b/mypy/stubgen.py @@ -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)