From 58e12c9da951ee4b6c89a10239d5ff3a82d0191d Mon Sep 17 00:00:00 2001 From: Luca Marconato Date: Sat, 17 Oct 2026 16:34:19 +0200 Subject: [PATCH] fix docs build: load scverse_misc.sphinx_ext before sphinx_autodoc_typehints sphinx-autodoc-typehints 3.17 converts class bases to strings in its autodoc-process-bases handler, which broke scverse_doc's handler that expects classes. Co-Authored-By: Claude Opus 5.5 --- docs/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/conf.py b/docs/conf.py index ae6e531f6..69462a98e 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -50,11 +50,11 @@ "sphinx.ext.napoleon", "sphinxcontrib.bibtex", "sphinxcontrib.katex", + "scverse_misc.sphinx_ext", # needs to be before sphinx_autodoc_typehints, which turns class bases into strings "sphinx_autodoc_typehints", "sphinx_design", "IPython.sphinxext.ipython_console_highlighting", "sphinxext.opengraph", - "scverse_misc.sphinx_ext", *[p.stem for p in (HERE / "extensions").glob("*.py")], *[p.stem for p in (HERE / "tutorials" / "notebooks" / "extensions").glob("*.py")], ]