Enable parallel execution in the other internal Sphinx plugin

This commit is contained in:
Adrian Chaves 2026-03-30 18:01:29 +02:00
parent 299993b62a
commit c4c0555ccf
2 changed files with 5 additions and 4 deletions

View File

@ -3,7 +3,6 @@ from collections.abc import Sequence
from operator import itemgetter
from typing import Any, TypedDict
import sphinx
from docutils import nodes
from docutils.nodes import Element, General, Node, document
from docutils.parsers.rst import Directive
@ -158,5 +157,4 @@ def setup(app: Sphinx) -> dict[str, Any]:
app.connect("doctree-read", collect_scrapy_settings_refs)
app.connect("doctree-resolved", replace_settingslist_nodes)
return {"version": sphinx.__display_version__, "parallel_read_safe": True}
return {"parallel_read_safe": True}

View File

@ -3,6 +3,8 @@ Must be included after 'sphinx.ext.autodoc'. Fixes unwanted 'alias of' behavior.
https://github.com/sphinx-doc/sphinx/issues/4422
"""
from typing import Any
# pylint: disable=import-error
from sphinx.application import Sphinx
@ -14,5 +16,6 @@ def maybe_skip_member(app: Sphinx, what, name: str, obj, skip: bool, options) ->
return skip
def setup(app: Sphinx) -> None:
def setup(app: Sphinx) -> dict[str, Any]:
app.connect("autodoc-skip-member", maybe_skip_member)
return {"parallel_read_safe": True}