potiuk opened a new pull request, #67034:
URL: https://github.com/apache/airflow/pull/67034
Under `uv --resolution lowest-direct` the previous `typer-slim>=0.15.1` floor
in `devel-common/pyproject.toml` pinned `typer-slim==0.15.1`, which is the
OLD
standalone slim package that ships its own `typer/` module. `fastapi-cli`
transitively pulled `typer==0.24.2`, so both packages wrote to the same
`typer/` site-packages directory and produced a corrupted install. `import
fastapi_cli.cli` then raised `ImportError`, and the 23
`mock.patch("fastapi_cli.cli._run")` calls in
`airflow-core/tests/unit/cli/commands/test_api_server_command.py` surfaced
this as `AttributeError: module 'fastapi_cli' has no attribute 'cli'` from
`pkgutil.resolve_name` (Python 3.13 `mock.patch` uses `pkgutil.resolve_name`,
which only falls back to `getattr` after an `ImportError`).
From `typer-slim==0.22.0` the package is a meta-package that just depends on
`typer`, so the lowest-direct solve no longer ships a competing slim `typer/`
module and the full `typer` cleanly owns the namespace.
Observed CI failure:
https://github.com/apache/airflow/actions/runs/25956999745/job/76306005054
---
##### Was generative AI tooling used to co-author this PR?
- [X] Yes — Claude Opus 4.7 (1M context)
Generated-by: Claude Opus 4.7 (1M context) 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]