Fixed SyaNodeParser false positive recognition issue
This commit is contained in:
@@ -349,9 +349,6 @@ class EnumerationConcept(Concept):
|
||||
self.set_value(ConceptParts.BODY, iteration)
|
||||
self.metadata.is_evaluated = True
|
||||
|
||||
# def __iter__(self):
|
||||
# return iter(self.body)
|
||||
|
||||
|
||||
class ListConcept(Concept):
|
||||
def __init__(self, items=None):
|
||||
@@ -362,21 +359,6 @@ class ListConcept(Concept):
|
||||
def append(self, obj):
|
||||
self.body.append(obj)
|
||||
|
||||
# def __len__(self):
|
||||
# return len(self.body)
|
||||
#
|
||||
# def __getitem__(self, key):
|
||||
# return self.body[key]
|
||||
#
|
||||
# def __setitem__(self, key, value):
|
||||
# self.body[key] = value
|
||||
#
|
||||
# def __iter__(self):
|
||||
# return iter(self.body)
|
||||
#
|
||||
# def __contains__(self, item):
|
||||
# return item in self.body
|
||||
|
||||
|
||||
class FilteredConcept(Concept):
|
||||
def __init__(self, filtered=None, iterable=None, predicate=None):
|
||||
@@ -450,5 +432,5 @@ class ExplanationConcept(Concept):
|
||||
self.set_value("command", command) # explain command parameters
|
||||
self.set_value("title", title) # a title to the explanation
|
||||
self.set_value("instructions", instructions) # instructions for SheerkaPrint
|
||||
self.set_value(ConceptParts.BODY, execution_result) # list of results
|
||||
self.set_value(ConceptParts.BODY, execution_result) # list of results
|
||||
self.metadata.is_evaluated = True
|
||||
|
||||
Reference in New Issue
Block a user