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
PRs #13644 and #13637 deprecated ``Parser.config``, ``Parser.env``, and
``Parser.set_application`` in 9.0, scheduled for removal in 10.0.
However, the registry already populates ``_config`` and ``_env`` directly
when constructing parser instances, and there is no documented public
replacement for the property accessors. Third-party parsers such as
``sphinx_bib_domain`` rely on reading config/env during ``parse()``, and
projects using ``-W error`` in CI now fail outright on the deprecation
warnings.
Reverse the deprecation of ``Parser.config`` and ``Parser.env`` so that
they remain the supported way for parsers to access the build
configuration and environment. ``Parser.set_application`` is kept
deprecated since the hook is genuinely redundant once ``_config`` and
``_env`` are set by the registry.
Document the supported access pattern in ``doc/extdev/parserapi.rst``
and add a regression test that asserts no ``RemovedInSphinx10Warning``
is emitted on attribute read.
Fixes#14371
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments