You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Remove the Sphinx 9 builtin cross-reference workaround once sphinx-doc/sphinx#14223 is fixed #74167
Check when sphinx-doc/sphinx#14223 is resolved, then figure out whether the workaround implemented in #74168 can be removed.
AI Summary
Sphinx 9 (used by the docs build on Python 3.11+) falls back from a py:class lookup to a fuzzy py:data/py:attr search when resolving annotation cross-references. A builtin such as type or object in an annotation then matches every documented attribute with that name, and the docs build fails with "more than one target found for cross-reference". This is the upstream regression sphinx-doc/sphinx#14223.
The docs build works around it with the python_builtin_xrefs extension in devel-common/src/sphinx_exts/, which skips that fallback for builtin names so they resolve to the Python documentation as in Sphinx 8.
Follow-up: once sphinx-doc/sphinx#14223 is fixed in every Sphinx version the docs build resolves (9.0.x is the last line for Python 3.11), remove python_builtin_xrefs.py, its entry in BASIC_SPHINX_EXTENSIONS and its test.
Done when: the docs build passes on all supported Python versions without the extension.
Committer
I acknowledge that I am a maintainer/committer of the Apache Airflow project.
Activity