(
listcomp: ast.ListComp,
state: dict[str, Any],
static_tools: dict[str, Callable],
custom_tools: dict[str, Callable],
authorized_imports: list[str],
)
| 1097 | |
| 1098 | |
| 1099 | def evaluate_listcomp( |
| 1100 | listcomp: ast.ListComp, |
| 1101 | state: dict[str, Any], |
| 1102 | static_tools: dict[str, Callable], |
| 1103 | custom_tools: dict[str, Callable], |
| 1104 | authorized_imports: list[str], |
| 1105 | ) -> list[Any]: |
| 1106 | return list( |
| 1107 | _evaluate_comprehensions( |
| 1108 | listcomp.generators, |
| 1109 | lambda comp_state: evaluate_ast(listcomp.elt, comp_state, static_tools, custom_tools, authorized_imports), |
| 1110 | state, |
| 1111 | static_tools, |
| 1112 | custom_tools, |
| 1113 | authorized_imports, |
| 1114 | ) |
| 1115 | ) |
| 1116 | |
| 1117 | |
| 1118 | def evaluate_setcomp( |
no test coverage detected
searching dependent graphs…