(request: APIRequest, call_next: CallNext)
| 851 | attempts: list[int] = [] |
| 852 | |
| 853 | def give_up(request: APIRequest, call_next: CallNext) -> Any: # noqa: ARG001 |
| 854 | attempts.append(request.retries_taken) |
| 855 | raise RetryableError("try again") |
| 856 | |
| 857 | client = make_sync_client(middleware=[give_up], max_retries=2) |
| 858 |
nothing calls this directly
no test coverage detected