Skip to content

fix(cli): pin Typer to version compatible with Click 8.3 help rendering#1514

Open
SergioChan wants to merge 1 commit intoapache:mainfrom
SergioChan:fix-cli-help-typer-1309
Open

fix(cli): pin Typer to version compatible with Click 8.3 help rendering#1514
SergioChan wants to merge 1 commit intoapache:mainfrom
SergioChan:fix-cli-help-typer-1309

Conversation

@SergioChan
Copy link

@SergioChan SergioChan commented Mar 8, 2026

Fixes #1309

Pin the CLI Typer dependency to a version that supports Click 8.3's make_metavar(ctx) signature. This prevents hamilton --help from crashing with TypeError: Parameter.make_metavar() missing 1 required positional argument: 'ctx'.

Changes

  • update project.optional-dependencies.cli from typer to typer>=0.16.0
  • update the test dependency entry to typer>=0.16.0 so test environments resolve the same compatible version

How I tested this

  • uv sync --extra cli --python 3.13
  • uv run --python 3.13 hamilton --help
  • confirmed help text renders successfully and no traceback is raised

Notes

  • kept scope intentionally minimal to dependency resolution only

Checklist

  • PR has an informative and human-readable title (this will be pulled into the release notes)
  • Changes are limited to a single goal (no scope creep)
  • Code passed the pre-commit check & code is left cleaner/nicer than when first encountered.
  • Any change in functionality is tested
  • New functions are documented (with a description, list of inputs, and expected output)
  • Placeholder code is flagged / future TODOs are captured in comments
  • Project documentation has been updated if adding/changing functionality.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

hamilton cli script errors with --help

1 participant