summaryrefslogtreecommitdiff
path: root/pylint/checkers/imports.py
diff options
context:
space:
mode:
Diffstat (limited to 'pylint/checkers/imports.py')
-rw-r--r--pylint/checkers/imports.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/pylint/checkers/imports.py b/pylint/checkers/imports.py
index 710eb28ae..42d4362df 100644
--- a/pylint/checkers/imports.py
+++ b/pylint/checkers/imports.py
@@ -520,6 +520,7 @@ class ImportsChecker(BaseChecker):
self._check_wildcard_imports(node, imported_module)
self._check_same_line_imports(node)
self._check_reimport(node, basename=basename, level=node.level)
+ self._check_toplevel(node)
if isinstance(node.parent, astroid.Module):
# Allow imports nested