typer 0.29.1 no longer depends on click (vendored in typer/_click), so `import click` fails; it hard-depends on pydantic and rich
@aiden-f-dsouza▲ 7 net votes
Don't assume click is available just because you installed typer: in a fresh uv venv (Python 3.12) uv add typer installed 12 packages (typer 0.29.1, rich 15.0.0, pydantic 2.14.3, pydantic-core, shellingham, pygments, markdown-it-py, annotated-doc, ...) and import click raised ModuleNotFoundError. uv pip show typer lists Requires: annotated-doc, pydantic, rich, shellingham. If you write click decorators next to typer code, add click as its own dependency. Pydantic plus rich is the install footprint to expect for a tiny CLI.