imports cleanup & documentation
This commit is contained in:
1 parent
02d1e1aa42
commit
e5fe726862
4 files changed
+15
-8
No files matched your search
@@ -591,7 +591,7 @@ class Script(object):
|
||||
for stmt in statements:
|
||||
if isinstance(stmt, pr.Import):
|
||||
imps = imports.ImportWrapper(self._evaluator, stmt,
|
||||
direct_resolve=True).follow()
|
||||
nested_resolve=True).follow()
|
||||
if stmt.is_nested() and any(not isinstance(i, pr.Module) for i in imps):
|
||||
analysis.add(self._evaluator, 'import-error', stmt)
|
||||
else:
|
||||
|
||||
Reference in new issue
Block a user