Ten small Python tasks, each failing on the fixture and passing with a reference solution, including workflow expectations for a small change, a bugfix, and a delegable change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
4 lines
146 B
Python
4 lines
146 B
Python
def fetch(url, retries=3):
|
|
"""Fetch url, retrying up to retries times. Returns the attempts used."""
|
|
return min(retries, 3) if url else 0
|