[Internal] Cap typer below 0.26.0 (CLI incompatibility)#4272
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pinact found unpinned actions in this repo.
Auto-fixable, but outside this PR's diff (run pinact run locally and commit):
.github/workflows/model_card_consistency_reminder.yml:15—actions/checkout@v6→actions/checkout@de0fac2e45… # v6.0.2.github/workflows/python-prerelease.yml:34—actions/checkout@v6→actions/checkout@de0fac2e45… # v6.0.2.github/workflows/python-quality.yml:23—- actions/checkout@v6→- actions/checkout@de0fac2e45… # v6.0.2.github/workflows/python-quality.yml:25—actions/setup-python@v6→actions/setup-python@a309ff8b42… # v6.2.0.github/workflows/python-tests.yml:22—actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6→actions/setup-python@a309ff8b42… # v6.2.0.github/workflows/python-tests.yml:57—actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6→actions/setup-python@a309ff8b42… # v6.2.0.github/workflows/python-tests.yml:174—actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6→actions/setup-python@a309ff8b42… # v6.2.0.github/workflows/release.yml:293—- actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6→- actions/setup-python@a309ff8b42… # v6.2.0.github/workflows/release.yml:348—- actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6→- actions/setup-python@a309ff8b42… # v6.2.0.github/workflows/release.yml:435—- actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6→- actions/setup-python@a309ff8b42… # v6.2.0.github/workflows/release.yml:555—- actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6→- actions/setup-python@a309ff8b42… # v6.2.0.github/workflows/release.yml:690—- actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6→- actions/setup-python@a309ff8b42… # v6.2.0.github/workflows/release.yml:1018—actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6→actions/setup-python@a309ff8b42… # v6.2.0.github/workflows/style-bot-action.yml:184—actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6→actions/setup-python@a309ff8b42… # v6.2.0.github/workflows/sync-hf-cli-skill.yml:17—actions/checkout@v6→actions/checkout@de0fac2e45… # v6.0.2.github/workflows/sync-hf-cli-skill.yml:20—actions/setup-python@v6→actions/setup-python@a309ff8b42… # v6.2.0.github/workflows/sync-hf-cli-skill.yml:46—actions/create-github-app-token@v3→actions/create-github-app-token@bcd2ba4921… # v3.2.0.github/workflows/sync-hf-cli-skill.yml:53—actions/checkout@v6→actions/checkout@de0fac2e45… # v6.0.2.github/workflows/sync-hf-cli-skill.yml:60—astral-sh/setup-uv@v7→astral-sh/setup-uv@37802adc94… # v7.6.0.github/workflows/sync-hf-cli-skill.yml:86—peter-evans/create-pull-request@v8→peter-evans/create-pull-request@5f6978faf0… # v8.1.1.github/workflows/build_repocard_examples.yaml:18—actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6→actions/setup-python@a309ff8b42… # v6.2.0.github/workflows/update-inference-types.yaml:22—actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6→actions/setup-python@a309ff8b42… # v6.2.0.github/workflows/update-inference-types.yaml:37—- actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6→- actions/setup-node@48b55a011b… # v6.4.0.github/workflows/update-inference-types.yaml:71—peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8→peter-evans/create-pull-request@5f6978faf0… # v8.1.1
hanouticelina
added a commit
that referenced
this pull request
May 26, 2026
Contributor
|
This PR has been shipped as part of the v1.16.3 release. |
|
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
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.
from @hanouticelina : follow-up to #4270, typer broke other things as well 🙃
Summary
Cap
typerto<0.26.0ininstall_requires. Typer 0.26.0 (released 2026-05-26) vendored Click internally, which breaks thehfCLI in several ways:--helpinvocation (e.g.hf jobs ps --help,hf spaces ls --help) prints help correctly but then dumpsclick.exceptions.Exit: 0to stderr — typer now raises its vendoredtyper._click.exceptions.Exit, which ourHFCliTyperGrouphandling no longer catches.--json,-q,--format,--no-truncate) are no longer intercepted by_consume_format_flags_for_leaf—hf jobs ps --jsonprints "No jobs found" instead of[],hf jobs ps -qprints the full human table, etc.Local verification:
hf jobs ps --helphf jobs ps --jsonpytest tests/test_cli.pyExit(0)traceback[]This is a temporary cap. The real fix is to make
HFCliTyperGroup(and the rest of the framework in_cli_utils.py/_help_formatter.py) compatible with typer 0.26.0's vendored-Click internals — happy to open a follow-up issue for that. For now this unblocks CI.Note
Cursor Bugbot is generating a summary for commit 89afd0a. Configure here.