diff --git a/pyproject.toml b/pyproject.toml index 921a3c2..44e6328 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -23,7 +23,11 @@ classifiers = [ "Programming Language :: Python :: 3.13", ] dependencies = [ - "typer>=0.12.0", + # Cap typer below 0.26: starting in 0.26.0 typer vendored click privately + # (typer._click), so `import click` no longer resolves transitively and + # external-click handles stop sharing typer's Context thread-local. Lift + # this cap only alongside a migration off direct click imports. + "typer>=0.12.0,<0.26", "rich>=13.0.0", "httpx>=0.27.0", "orjson>=3.10.0", diff --git a/uv.lock b/uv.lock index 10ba2e5..47701fe 100644 --- a/uv.lock +++ b/uv.lock @@ -357,7 +357,7 @@ requires-dist = [ { name = "rich", specifier = ">=13.0.0" }, { name = "tomli", marker = "python_full_version < '3.11'", specifier = ">=2.0.0" }, { name = "tomli-w", specifier = ">=1.0.0" }, - { name = "typer", specifier = ">=0.12.0" }, + { name = "typer", specifier = ">=0.12.0,<0.26" }, ] [package.metadata.requires-dev]