Docs: Fix duplicate object description warnings (#122068)

This commit is contained in:
Adam Turner 2024-07-20 20:46:41 +01:00 committed by GitHub
parent a09e215abf
commit 8db5f48007
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 7 additions and 1 deletions

View File

@ -7,6 +7,7 @@
:synopsis: The base class representing email messages in a fashion
backward compatible with Python 3.2
:noindex:
:no-index:
The :class:`Message` class is very similar to the

View File

@ -874,6 +874,7 @@ Element Objects
.. module:: xml.etree.ElementTree
:noindex:
:no-index:
.. class:: Element(tag, attrib={}, **extra)

View File

@ -18,11 +18,12 @@ from pprint import pformat
import sphinx
from docutils import nodes
from docutils.io import StringOutput
from docutils.parsers.rst import directives
from docutils.utils import new_document, unescape
from sphinx import addnodes
from sphinx.builders import Builder
from sphinx.domains.changeset import VersionChange, versionlabels, versionlabel_classes
from sphinx.domains.python import PyFunction, PyMethod
from sphinx.domains.python import PyFunction, PyMethod, PyModule
from sphinx.errors import NoUri
from sphinx.locale import _ as sphinx_gettext
from sphinx.util import logging
@ -49,6 +50,9 @@ from sphinx.domains import std
std.token_re = re.compile(r'`((~?[\w-]*:)?\w+)`')
# backport :no-index:
PyModule.option_spec['no-index'] = directives.flag
# Support for marking up and linking to bugs.python.org issues