Download fixtures/sample_pkg/src/textops.py from tailot/codex-python: direct link, hf CLI and curl.
- Browser
- Download file 284 Bytes
-
https://huggingface.co/datasets/tailot/codex-python/resolve/main/fixtures/sample_pkg/src/textops.py
- Command line
-
hf download hf://datasets/tailot/codex-python/fixtures/sample_pkg/src/textops.py
-
curl -L -o textops.py https://huggingface.co/datasets/tailot/codex-python/resolve/main/fixtures/sample_pkg/src/textops.py
284 Bytes
| """Formatting helpers depending on mathops.""" | |
| from __future__ import annotations | |
| from src.mathops import add_numbers | |
| def format_sum(left: int, right: int) -> str: | |
| """Format an addition summary.""" | |
| total = add_numbers(left, right) | |
| return f"{left} + {right} = {total}" | |