From d04b9f2445b819f2def5e6a616dc396473e12afe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Gajdu=C5=A1ek?= Date: Mon, 6 Oct 2025 13:11:56 +0200 Subject: [PATCH] Pin astroid to <4.0.0 to fix sphinx-autoapi compatibility (#19858) Astroid 4.0.0 introduced breaking API changes that cause sphinx-autoapi to crash with: TypeError: AstroidBuilder.__init__() missing 1 required positional argument: 'manager' This pins astroid to versions below 4.0.0 until sphinx-autoapi releases a compatible version. Fixes: https://github.com/readthedocs/sphinx-autoapi/issues/536 (cherry picked from commit d796c6705bbc92a0af162696e8071681f4d203af) --- requirements-optional.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/requirements-optional.txt b/requirements-optional.txt index c20cfb398d6..4ddfc538114 100644 --- a/requirements-optional.txt +++ b/requirements-optional.txt @@ -7,6 +7,9 @@ ruff==0.13.3 # For generating documentation. sphinx==8.2.3 sphinx-autoapi==3.6.0 +# Pin to <4 due to breaking changes in 4.0.0 incompatible with sphinx-autoapi +# https://github.com/readthedocs/sphinx-autoapi/issues/536 +astroid<4.0.0 # For 'manage' interactive shell manage==0.1.15