(request: APIRequest, call_next: AsyncCallNext)
| 1781 | attempts: list[int] = [] |
| 1782 | |
| 1783 | async def give_up(request: APIRequest, call_next: AsyncCallNext) -> Any: # noqa: ARG001 |
| 1784 | attempts.append(request.retries_taken) |
| 1785 | raise RetryableError("try again") |
| 1786 | |
| 1787 | client = make_async_client(middleware=[give_up], max_retries=2) |
| 1788 |
nothing calls this directly
no test coverage detected