"""
retry.py — Exponential backoff retry decorator for API calls.
Usage:
@retry(max_attempts=3, backoff_factor=2)
async def call_api(url: str) -> dict:
async with aiohttp.ClientSession() as session:
async with session.get(url) as resp:
resp.raise_for_status()
return await resp.json()
"""
import asyncioretry.py