(request: APIRequest, call_next: AsyncCallNext)
| 2041 | attempts: list[int] = [] |
| 2042 | |
| 2043 | async def give_up(request: APIRequest, call_next: AsyncCallNext) -> Any: # noqa: ARG001 |
| 2044 | attempts.append(request.retries_taken) |
| 2045 | raise RetryableError("try again") |
| 2046 | |
| 2047 | client = make_async_client(middleware=[give_up], max_retries=2) |
| 2048 |
nothing calls this directly
no test coverage detected