(_: httpx2.Request)
| 69 | client: Anthropic, duplicate: Callable[[APIStatusError], APIStatusError] |
| 70 | ) -> None: |
| 71 | def handler(_: httpx2.Request) -> httpx2.Response: |
| 72 | return httpx2.Response(400, headers={"x-foo": "bar"}, json={"error": "oops"}) |
| 73 | |
| 74 | http_client = httpx2.Client(transport=httpx2.MockTransport(handler)) |
| 75 | failing_client = client.with_options(http_client=http_client, max_retries=0) |