Get docstrings working.
This commit is contained in:
1 parent
ce5d428d22
commit
164518b993
4 files changed
+14
-11
No files matched your search
@@ -543,9 +543,7 @@ class Scope(Simple, DocstringMixin):
|
||||
|
||||
@property
|
||||
def statements(self):
|
||||
return [s for c in self.children if is_node(c, 'simple_stmt')
|
||||
for s in c.children if isinstance(s, (ExprStmt, Import,
|
||||
KeywordStatement))]
|
||||
return self._search_in_scope((ExprStmt, Import, KeywordStatement))
|
||||
|
||||
def is_scope(self):
|
||||
return True
|
||||
|
||||
Reference in new issue
Block a user