Introduce ExecutionVariable which includes an ExecutionCall and a variable name to store the result as.

pull/3500/head
derekpierre 2024-05-09 14:59:28 -04:00
parent c2c3b19754
commit ef2647f911
No known key found for this signature in database
1 changed files with 10 additions and 0 deletions

View File

@ -99,3 +99,13 @@ class ExecutionCall(_Serializable, ABC):
@abstractmethod
def execute(self, *args, **kwargs) -> Any:
raise NotImplementedError
class ExecutionVariable(_Serializable, ABC):
class Schema(CamelCaseSchema):
var_name = fields.Str(required=True)
call = NotImplemented
def __init__(self, var_name: str, call: ExecutionCall):
self.var_name = var_name
self.call = call