Fixed concept token parsing

This commit is contained in:
2020-05-23 10:46:03 +02:00
parent 32fb0e5398
commit c79403443f
5 changed files with 21 additions and 21 deletions
-3
View File
@@ -799,9 +799,6 @@ class Sheerka(Concept):
:return:
"""
if isinstance(a, BuiltinConcepts): # common KSI error ;-)
raise SyntaxError("Remember that the first parameter of isinstance MUST be a concept")
if not isinstance(a, Concept):
return False
@@ -150,12 +150,7 @@ class SheerkaSetsManager(BaseService):
:return:
"""
if isinstance(a, BuiltinConcepts): # common KSI error ;-)
raise SyntaxError("Remember that the first parameter of isinstance MUST be a concept")
ensure_concept(a, b)
# if not (isinstance(a, Concept) and isinstance(b, Concept)):
# return False
# TODO, first check the 'isa' property of a
if not (a.id and b.id):