Skip to content

Commit 25b6a33

Browse files
jpbrodrick89claude
andcommitted
fix: use typer.Context for run command parameter
`cli.py:run_container` previously annotated its context parameter as `click.Context`. With `typer >= 0.16`, typer's parameter-type resolution no longer accepts a raw `click.Context` and raises `RuntimeError: Type not yet supported: <class 'click.core.Context'>` at import time. `typer.Context` is a thin subclass of `click.Context` provided for exactly this situation. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 574eeb2 commit 25b6a33

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tesseract_core/sdk/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -941,7 +941,7 @@ def _extract_cli_config(
941941
)
942942
@engine.needs_docker
943943
def run_container(
944-
context: click.Context,
944+
context: typer.Context,
945945
tesseract_image: Annotated[
946946
str | None,
947947
typer.Argument(

0 commit comments

Comments
 (0)