T20 Fix a bug in a small repo
Category: Code. Pass at 3/3.
Prompt
The attached repo (repo/) has a failing test. Find and fix the bug without changing the tests. Explain the fix in 2 sentences.
Inputs
Files attached to the chat:
Checklist
Pass at 3/3.
- `python -m pytest repo` passes (all tests)
- tests/ unchanged (diff)
- The explanation names the cause of the bug
The answer key is not published while the task set is in use.