(m: re.Match[str])
| 474 | |
| 475 | # Multi-expression: string interpolation |
| 476 | def _replacer(m: re.Match[str]) -> str: |
| 477 | val = _evaluate_simple_expression(m.group(1).strip(), namespace) |
| 478 | return str(val) if val is not None else "" |
| 479 | |
| 480 | return _EXPR_PATTERN.sub(_replacer, template) |
| 481 |
nothing calls this directly
no test coverage detected