(
dictcomp: ast.DictComp,
state: dict[str, Any],
static_tools: dict[str, Callable],
custom_tools: dict[str, Callable],
authorized_imports: list[str],
)
| 1135 | |
| 1136 | |
| 1137 | def evaluate_dictcomp( |
| 1138 | dictcomp: ast.DictComp, |
| 1139 | state: dict[str, Any], |
| 1140 | static_tools: dict[str, Callable], |
| 1141 | custom_tools: dict[str, Callable], |
| 1142 | authorized_imports: list[str], |
| 1143 | ) -> dict[Any, Any]: |
| 1144 | return dict( |
| 1145 | _evaluate_comprehensions( |
| 1146 | dictcomp.generators, |
| 1147 | lambda comp_state: ( |
| 1148 | evaluate_ast(dictcomp.key, comp_state, static_tools, custom_tools, authorized_imports), |
| 1149 | evaluate_ast(dictcomp.value, comp_state, static_tools, custom_tools, authorized_imports), |
| 1150 | ), |
| 1151 | state, |
| 1152 | static_tools, |
| 1153 | custom_tools, |
| 1154 | authorized_imports, |
| 1155 | ) |
| 1156 | ) |
| 1157 | |
| 1158 | |
| 1159 | def evaluate_try( |
no test coverage detected
searching dependent graphs…