github-actions[bot] opened a new pull request, #67037:
URL: https://github.com/apache/airflow/pull/67037
devel-common previously pinned `typer-slim>=0.15.1`. Under
`uv --resolution lowest-direct`, this resolved to typer-slim==0.15.1 — 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`.
typer-slim 0.22.0+ is a deprecated meta-package that just depends on typer,
and upstream explicitly warns against installing it. Switch to typer
directly (>=0.22.0) so nothing in the dep graph can reintroduce a pre-0.22
slim typer-slim, and the full typer cleanly owns the `typer/` namespace.
(cherry picked from commit 4e82672b4dae5d62c2e2c82f613a8676b2f8be4c)
Co-authored-by: Jarek Potiuk <[email protected]>
--
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]