Imports are not Statements.
This commit is contained in:
1 parent
164518b993
commit
2c3a7b6d6c
1 file changed
+1
-1
@@ -543,7 +543,7 @@ class Scope(Simple, DocstringMixin):
|
||||
|
||||
@property
|
||||
def statements(self):
|
||||
return self._search_in_scope((ExprStmt, Import, KeywordStatement))
|
||||
return self._search_in_scope((ExprStmt, KeywordStatement))
|
||||
|
||||
def is_scope(self):
|
||||
return True
|
||||
|
||||
Reference in new issue
Block a user