o-nikolas opened a new pull request, #72072:
URL: https://github.com/apache/airflow/pull/72072

   anthropic SDK 1.0.0 (released 2026-08-20) replaces `httpx` with `httpx2` 
(pydantic's fork) and is a major release the provider has not been validated 
against. Once the automated CI environment upgrade (#72016) pulled 
`anthropic==1.0.0` into `uv.lock`, "MyPy providers checks" started failing on 
every PR built on top of it:
   
   ```
   providers/anthropic/tests/unit/anthropic/hooks/test_anthropic.py:287: error:
   Argument "response" to "BadRequestError" has incompatible type
   "httpx._models.Response"; expected "httpx2._models.Response"
   ```
   
   This blocks unrelated PRs — first seen on the provider release PR #72069.
   
   This PR caps the provider dependency to `anthropic>=0.121.0,<1.0.0` (main 
dependency and the `bedrock`/`vertex`/`aws` extras) and regenerates `uv.lock`, 
which now resolves `anthropic==0.125.0` back on classic `httpx`. Capping rather 
than spot-fixing the test also protects users from an unvetted major SDK bump 
at runtime.
   
   The migration to the 1.x SDK and removal of the cap is tracked in #72071.
   
   **Tested:** `prek run --from-ref upstream/main --to-ref HEAD --stage 
pre-commit` passes; `uv.lock` verified to resolve `anthropic==0.125.0` 
(httpx-based), which is the version the last green main canary MyPy run used.
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [X] Yes — Kiro CLI (claude-fable-5)
   
   Generated-by: Kiro CLI (claude-fable-5) following [the 
guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to