Skip to content

Remove the Sphinx 9 builtin cross-reference workaround once sphinx-doc/sphinx#14223 is fixed #74167

Open

Description

@shahar1

related: #74168

Body

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.

Drafted-by: Claude Code (Opus 5.5)

Activity

  1. self-assigned this
    on Oct 3, 2026
  2. added theissue type on Oct 3, 2026
  3. added
    kind:task
    kind:meta
    on Oct 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind:metakind:task

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions