(
raw_operators: dict[str, dict[str, Any]] | None,
)
| 182 | |
| 183 | |
| 184 | def build_operators( |
| 185 | raw_operators: dict[str, dict[str, Any]] | None, |
| 186 | ) -> dict[str, OperatorConfig] | None: |
| 187 | if not raw_operators: |
| 188 | return None |
| 189 | operators: dict[str, OperatorConfig] = {} |
| 190 | for entity, raw_cfg in raw_operators.items(): |
| 191 | op_cfg = dict(raw_cfg) |
| 192 | op_type = op_cfg.pop("type", "replace") |
| 193 | operators[entity] = OperatorConfig(op_type, op_cfg) |
| 194 | return operators |
| 195 | |
| 196 | |
| 197 | def run_anonymize( |
no outgoing calls
no test coverage detected