Fixed #18 : Parsing and evaluating Python
This commit is contained in:
+2
-4
@@ -2,7 +2,7 @@ from common.global_symbols import NotInit
|
||||
from core.ExecutionContext import ExecutionContext
|
||||
from core.ReturnValue import ReturnValue
|
||||
from core.concept import Concept, ConceptMetadata, DefinitionType
|
||||
from core.services.SheerkaConceptManager import ConceptManager
|
||||
from services.SheerkaConceptManager import ConceptManager
|
||||
|
||||
|
||||
class GetNextId:
|
||||
@@ -294,8 +294,6 @@ def get_metadatas(*args, **kwargs):
|
||||
def get_concepts(context: ExecutionContext, *concepts, **kwargs) -> list[Concept]:
|
||||
"""
|
||||
Simple and quick way to get initialize concepts for a test
|
||||
:param sheerka:
|
||||
:type sheerka:
|
||||
:param context:
|
||||
:type context:
|
||||
:param concepts:
|
||||
@@ -322,7 +320,7 @@ def get_concepts(context: ExecutionContext, *concepts, **kwargs) -> list[Concept
|
||||
return res
|
||||
|
||||
|
||||
def define_new_concept(context: ExecutionContext, c: str | Concept) -> Concept:
|
||||
def define_new_concept(context: ExecutionContext, c: str | Concept | ConceptMetadata) -> Concept:
|
||||
sheerka = context.sheerka
|
||||
if isinstance(c, str):
|
||||
retval = sheerka.define_new_concept(context, c)
|
||||
|
||||
Reference in New Issue
Block a user