r"""Remove formatting like code blocks and whitespace.
(call: str)
| 427 | """ |
| 428 | |
| 429 | def preprocess_input(call: str) -> str: |
| 430 | r"""Remove formatting like code blocks and whitespace.""" |
| 431 | if call.strip().startswith("```python"): |
| 432 | call = call.strip().removeprefix("```python").removesuffix("```") |
| 433 | return textwrap.dedent(call).strip() |
| 434 | |
| 435 | def evaluate_arg(arg): |
| 436 | r"""Recursively evaluate arguments, including nested calls.""" |
no outgoing calls
no test coverage detected