fix: drop unused docs dependency group#1044
Merged
ajbozarth merged 1 commit intoMay 8, 2026
Merged
Conversation
The `docs` group in pyproject.toml was legacy from the pre-Mintlify
Sphinx setup — nothing in mellea/, cli/, docs/, tooling/, or test/
imports sphinx_rtd_theme, sphinx-autodoc-typehints, or sphinx_mdinclude
anymore (docs are now built from docs/docs/docs.json + tooling/docs-autogen/).
The group transitively installs sphinx itself. Sphinx 9.1.0 (2025-12-31)
adopted PEP 695 `type` statement syntax, which mypy rejects under our
pinned python_version = "3.11", breaking fresh `uv sync` runs with:
.venv/.../sphinx/ext/autodoc/_property_types.py:30:
error: Type statement is only supported in Python 3.12 and greater
Workaround until now: `uv pip uninstall sphinx`. Real fix: drop the
unused group. Also removes the orphaned "Documentation and notebooks"
comment since only the notebook group remains.
Assisted-by: Claude Code
Signed-off-by: Alex Bozarth <ajbozart@us.ibm.com>
jakelorocco
approved these changes
May 8, 2026
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.
Misc PR
Type of PR
Description
The
docsdependency group inpyproject.tomlwas a legacy leftover from the pre-Mintlify Sphinx setup. Nothing inmellea/,cli/,docs/,tooling/, ortest/imports any of its packages (sphinx_rtd_theme,sphinx-autodoc-typehints,sphinx_mdinclude) — docs are now built via Mintlify (docs/docs/docs.json) andtooling/docs-autogen/.The group transitively installed
sphinxitself, and starting with sphinx 9.1.0 (released 2025-12-31), sphinx adopted PEP 695typestatement syntax. Our mypy config pinspython_version = "3.11", so freshuv syncruns after ~March 2026 started failing the mypy pre-commit hook with:If you searched for that error and landed here: the previous workaround was
uv pip uninstall sphinx, but the real fix is to drop the unused group entirely (this PR).Followup from #1041, which hit this same issue during commit.
Testing
(Pure deletion — no new code to test. Verified locally:
uv run mypy .now passes without the sphinx workaround;uv run ruff format/checkclean.)Attribution