From 056e14e8790416f0257c31fd1f9fb5bbd779446c Mon Sep 17 00:00:00 2001 From: Marco Heinemann Date: Sun, 28 Jun 2026 19:40:48 +0200 Subject: [PATCH] fix(docs): cap typer <0.26.8 to keep the docs build working MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit typer 0.26.8 removed rich_utils.STYLE_METAVAR and STYLE_METAVAR_SEPARATOR, which sphinxcontrib-typer (the `.. typer::` CLI autodoc directive) still imports, so `sphinx-build -nW` crashes with AttributeError. typer is unpinned, so the Documentation build CI job broke repo-wide the moment 0.26.8 shipped. Cap typer below 0.26.8 (0.26.7 has both symbols; the runtime CLI is unaffected). Bumping sphinxcontrib-typer is not an option — even the latest 0.9.0 still references the removed symbols. Verified: `tox -e docs-clean` (sphinx-build -nW) builds clean with the cap. --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 61900c9..a376074 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -13,7 +13,7 @@ requires-python = ">= 3.12" dependencies = [ "comment-parser>=1.2.4", "ignore-python>=0.3.3", - "typer>=0.16.0", + "typer>=0.16.0,<0.26.8", # 0.26.8 removed rich_utils.STYLE_METAVAR, still imported by sphinxcontrib-typer (docs) "click < 8.2", # click 8.2.* produces empty errors if no args are given "jsonschema", "sphinx>=7.4,<10",