Remove `sphinx.directives.other.VersionChange` (#12662)

This commit is contained in:
Adam Turner 2024-07-23 14:56:49 +01:00 committed by GitHub
parent 57a63ea603
commit 772cdfa19d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 9 additions and 4 deletions

View File

@ -74,6 +74,12 @@ Incompatible changes
Patch by Adam Turner.
* #12646: Remove :py:func:`!sphinx.util.inspect.isNewType`.
Patch by Adam Turner.
* Remove the long-deprecated (since Sphinx 2) alias
to :py:class:`!VersionChange` in
:py:mod:`!sphinx.directives.other`
(Deprecated since Sphinx 2).
Use :py:class:`!sphinx.domains.changeset.VersionChange` directly.
Patch by Adam Turner.
Deprecated
----------

View File

@ -929,7 +929,7 @@ The following is a list of deprecated interfaces.
* - ``sphinx.directives.VersionChange``
- 2.1
- 4.0
- ``sphinx.directives.other.VersionChange``
- ``sphinx.domains.changeset.VersionChange``
* - ``sphinx.domains.python.PyClassmember``
- 2.1
@ -1465,10 +1465,10 @@ The following is a list of deprecated interfaces.
- 3.0
- N/A
* - ``sphinx.directives.other.VersionChanges``
* - ``sphinx.directives.other.VersionChange``
- 1.8
- 3.0
- ``sphinx.domains.changeset.VersionChanges``
- ``sphinx.domains.changeset.VersionChange``
* - ``sphinx.highlighting.PygmentsBridge.unhighlight()``
- 1.8

View File

@ -13,7 +13,6 @@ from docutils.parsers.rst.directives.misc import Include as BaseInclude
from docutils.statemachine import StateMachine
from sphinx import addnodes
from sphinx.domains.changeset import VersionChange # NoQA: F401 # for compatibility
from sphinx.domains.std import StandardDomain
from sphinx.locale import _, __
from sphinx.util import docname_join, logging, url_re