Skip to content

fix(cli): require modern Typer and use its public exception API - #580

Open
cdeil wants to merge 1 commit into
roboflow:mainfrom
cdeil:typer-public-api
Open

cdeil wants to merge 1 commit into
roboflow:mainfrom
cdeil:typer-public-api

Conversation

@cdeil

@cdeil cdeil commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

Typer 0.26 vendored Click, breaking the CLI’s external Click exception checks. This approach requires typer>=0.27.2 and uses the public TyperException API. It supports modern Typer without an exception compatibility shim, at the cost of raising the minimum version.

Alternative: #581 keeps older Typer support with a small compatibility layer. These are two proposals for comparison; only one should be merged.

Tested: 1,284 unittest cases (one skip) on minimum/latest Typer, 74 slim checks, Ruff and mypy. Full offline runs mock one existing training-test export preflight; that helper is outside this PR. AI-assisted; independently reviewed with Claude Opus 5.5.

@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatedpypi/​typer@​0.25.1 ⏵ 0.28.097 -2100100100100

View full report

This branch has not been deployed

No deployments
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.

1 participant