Repository navigation
CM-78466: Upgrade click to 8.3.3 and typer to 0.25.1 - #595
Merged
Merged
Conversation
click was pinned to <8.2 (resolving to 8.1.8), which is affected by CVE-2026-7246 and blocks installs in environments that require click >= 8.3.3. typer 0.15 caps click below 8.2, so it moves too. - click >=8.3.3,<8.4: 8.3.3 carries the CVE fix. 8.4+ duplicates the "Did you mean" hint with typer 0.25, which pinned click <8.4 for it. - typer >=0.25.1,<0.26: 0.26+ vendors its own Click, so it no longer renders click.ClickException and cannot mount the raw click `platform` group. Moving there is a separate migration. Behavior changes from click 8.2+: a group run with no args shows help and exits 2 instead of 0; misspelled commands get a suggestion; help no longer prints "[default: None]". Add tests for the Typer/Click seam so a future bump that breaks error rendering, the platform group or the typo hint fails CI. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
avishaiamiel
approved these changes
Nov 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
clickwas pinned to>=8.1.0,<8.2.0, which resolves to 8.1.8. That version is affected by CVE-2026-7246, and installs fail in environments that requireclick>=8.3.3, for example pre-commit hook setups behind a package proxy that enforces the CVE floor. typer 0.15 caps click below 8.2, so typer has to move too.What changed
>=8.1.0,<8.2.0>=8.3.3,<8.4.0^0.15.3>=0.25.1,<0.26.0typer 0.25 also pulls in a new transitive dependency,
annotated-doc.Why these caps
click 8.3.3 is the first version with the CVE fix: the pager and editor commands are split with
shlexinstead of running withshell=True.click
<8.4: with typer 0.25, click 8.4+ prints the typo hint twice ("Did you mean 'scan'? Did you mean 'scan'?"). typer's own maintainers pinned<8.4for this pairing.typer
<0.26: typer 0.26+ vendors its own copy of Click. When tested against typer 0.29:click.ClickExceptionerrors show up as raw tracebacks;platformgroup crashes;Moving to typer 0.26+ is a separate migration (follow-up ticket).
New tests:
tests/cli/test_click_typer_compat.pycovers the Typer/Click seam:ClickExceptionrenders as an error box;platformgroup mounts and its commands run;These tests fail on typer 0.29 and on click 8.5 with typer 0.25, so a future bump that breaks these paths fails CI.
User-visible behavior changes (click 8.2+)
cycodeor a command group likecycode scanwith no arguments still shows help, but exits 2 instead of 0.cycode scna→ "Did you mean 'scan'?"[default: None]for options without a default.No such option '--bogus'. Did you mean '--verbose'?Where to start reading
pyproject.toml(two lines), thentests/cli/test_click_typer_compat.py. The lock diff is mechanical.Verification
--help,version, error paths, an unknown option, a misspelled command,platform --helpand--show-completion zsh.pyinstaller.spec. It runsversionand renders errors and suggestions correctly.🤖 Generated with Claude Code