Skip to content

Commit 657da85

Browse files
committed
Script Transformer: Enable Compound Types
This will allow for the use of list, tuple, set, dict in the scripts of the script transformer.
1 parent eca0b70 commit 657da85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lisa/transformers/script_transformer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def _internal_run(self) -> Dict[str, Any]:
6161
key: self._runbook_builder.variables[key].data for key in item.variables
6262
}
6363

64-
evaluator = simpleeval.SimpleEval(
64+
evaluator = simpleeval.EvalWithCompoundTypes(
6565
# Update ex: DEFAULT_OPERATORS | {ast.BitXor, operator.xor}
6666
operators=simpleeval.DEFAULT_OPERATORS | {},
6767
# Update ex: DEFAULT_FUNCTIONS | {'floor': math.floor}

0 commit comments

Comments
 (0)