Remove asserts and calculate them dynamically.
This commit is contained in:
1 parent
0a3797cf6e
commit
8125d5f562
5 files changed
+15
-26
No files matched your search
@@ -526,12 +526,6 @@ class Scope(BaseNode, DocstringMixin):
|
||||
# returns will be in "normal" modules.
|
||||
return self._search_in_scope(ReturnStmt)
|
||||
|
||||
@property
|
||||
def asserts(self):
|
||||
# Needed here for fast_parser, because the fast_parser splits and
|
||||
# returns will be in "normal" modules.
|
||||
return self._search_in_scope(AssertStmt)
|
||||
|
||||
@property
|
||||
def subscopes(self):
|
||||
return self._search_in_scope(Scope)
|
||||
@@ -1203,8 +1197,3 @@ class CompFor(BaseNode):
|
||||
|
||||
def get_defined_names(self):
|
||||
return _defined_names(self.children[1])
|
||||
|
||||
@property
|
||||
def asserts(self):
|
||||
"""Since it's a scope, it can be asked for asserts."""
|
||||
return []
|
||||
Reference in new issue
Block a user