mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-40204: Add :noindex: in the documentation (GH-21859)
Add :noindex: to duplicated documentation to fix "duplicate object description" errors. For example, fix this Sphinx 3 issue: Doc/library/configparser.rst:1146: WARNING: duplicate object description of configparser.ConfigParser.optionxform, other instance in library/configparser, use :noindex: for one of them
This commit is contained in:
parent
20ae565bd2
commit
d3ded08048
9 changed files with 88 additions and 75 deletions
|
@ -24,6 +24,7 @@ diffs. For comparing directories and files, see also, the :mod:`filecmp` module.
|
|||
|
||||
|
||||
.. class:: SequenceMatcher
|
||||
:noindex:
|
||||
|
||||
This is a flexible class for comparing pairs of sequences of any type, so long
|
||||
as the sequence elements are :term:`hashable`. The basic algorithm predates, and is a
|
||||
|
@ -651,6 +652,7 @@ The :class:`Differ` class has this constructor:
|
|||
|
||||
|
||||
.. class:: Differ(linejunk=None, charjunk=None)
|
||||
:noindex:
|
||||
|
||||
Optional keyword parameters *linejunk* and *charjunk* are for filter functions
|
||||
(or ``None``):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue