Skip to content

Commit 20062f5

Browse files
AA-Turnerhugovk
authored andcommitted
[3.13] GH-101100: Remove some entries from nitpick_ignore (GH-138464)
(cherry picked from commit 22cb9ba) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
1 parent 5285ccc commit 20062f5

File tree

16 files changed

+27
-33
lines changed

16 files changed

+27
-33
lines changed

Doc/conf.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -213,13 +213,6 @@
213213
('envvar', 'USER'),
214214
('envvar', 'USERNAME'),
215215
('envvar', 'USERPROFILE'),
216-
# Deprecated function that was never documented:
217-
('py:func', 'getargspec'),
218-
('py:func', 'inspect.getargspec'),
219-
# Undocumented modules that users shouldn't have to worry about
220-
# (implementation details of `os.path`):
221-
('py:mod', 'ntpath'),
222-
('py:mod', 'posixpath'),
223216
]
224217

225218
# Temporary undocumented names.
@@ -231,8 +224,6 @@
231224
('py:meth', '_SubParsersAction.add_parser'),
232225
# Attributes/methods/etc. that definitely should be documented better,
233226
# but are deferred for now:
234-
('py:attr', '__annotations__'),
235-
('py:meth', '__missing__'),
236227
('py:attr', '__wrapped__'),
237228
]
238229

Doc/library/collections.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -758,9 +758,9 @@ stack manipulations such as ``dup``, ``drop``, ``swap``, ``over``, ``pick``,
758758

759759
.. attribute:: default_factory
760760

761-
This attribute is used by the :meth:`__missing__` method; it is
762-
initialized from the first argument to the constructor, if present, or to
763-
``None``, if absent.
761+
This attribute is used by the :meth:`~defaultdict.__missing__` method;
762+
it is initialized from the first argument to the constructor, if present,
763+
or to ``None``, if absent.
764764

765765
.. versionchanged:: 3.9
766766
Added merge (``|``) and update (``|=``) operators, specified in

Doc/library/dataclasses.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ Module contents
437437
By default, it is set to the module name of the caller.
438438

439439
This function is not strictly required, because any Python
440-
mechanism for creating a new class with :attr:`!__annotations__` can
440+
mechanism for creating a new class with :attr:`~object.__annotations__` can
441441
then apply the :deco:`dataclass` function to convert that class to
442442
a dataclass. This function is provided as a convenience. For
443443
example::

Doc/library/inspect.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1123,7 +1123,7 @@ Classes and functions
11231123
:func:`signature` in Python 3.5, but that decision has been reversed
11241124
in order to restore a clearly supported standard interface for
11251125
single-source Python 2/3 code migrating away from the legacy
1126-
:func:`getargspec` API.
1126+
:func:`!getargspec` API.
11271127

11281128
.. versionchanged:: 3.7
11291129
Python only explicitly guaranteed that it preserved the declaration

Doc/library/os.path.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ the :mod:`glob` module.)
4242
a path that is *always* in one of the different formats. They all have the
4343
same interface:
4444

45-
* :mod:`posixpath` for UNIX-style paths
46-
* :mod:`ntpath` for Windows paths
45+
* :mod:`!posixpath` for UNIX-style paths
46+
* :mod:`!ntpath` for Windows paths
4747

4848

4949
.. versionchanged:: 3.8

Doc/library/pathlib.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ Pure paths provide the following methods and properties:
311311
.. attribute:: PurePath.parser
312312

313313
The implementation of the :mod:`os.path` module used for low-level path
314-
parsing and joining: either :mod:`posixpath` or :mod:`ntpath`.
314+
parsing and joining: either :mod:`!posixpath` or :mod:`!ntpath`.
315315

316316
.. versionadded:: 3.13
317317

Doc/library/stdtypes.rst

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4834,13 +4834,13 @@ can be used interchangeably to index the same dictionary entry.
48344834

48354835
.. index:: __missing__()
48364836

4837-
If a subclass of dict defines a method :meth:`__missing__` and *key*
4837+
If a subclass of dict defines a method :meth:`~object.__missing__` and *key*
48384838
is not present, the ``d[key]`` operation calls that method with the key *key*
48394839
as argument. The ``d[key]`` operation then returns or raises whatever is
48404840
returned or raised by the ``__missing__(key)`` call.
4841-
No other operations or methods invoke :meth:`__missing__`. If
4842-
:meth:`__missing__` is not defined, :exc:`KeyError` is raised.
4843-
:meth:`__missing__` must be a method; it cannot be an instance variable::
4841+
No other operations or methods invoke :meth:`~object.__missing__`. If
4842+
:meth:`~object.__missing__` is not defined, :exc:`KeyError` is raised.
4843+
:meth:`~object.__missing__` must be a method; it cannot be an instance variable::
48444844

48454845
>>> class Counter(dict):
48464846
... def __missing__(self, key):
@@ -4854,7 +4854,8 @@ can be used interchangeably to index the same dictionary entry.
48544854
1
48554855

48564856
The example above shows part of the implementation of
4857-
:class:`collections.Counter`. A different ``__missing__`` method is used
4857+
:class:`collections.Counter`.
4858+
A different :meth:`!__missing__` method is used
48584859
by :class:`collections.defaultdict`.
48594860

48604861
.. describe:: d[key] = value

Doc/reference/compound_stmts.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1065,8 +1065,8 @@ subject value:
10651065

10661066
.. note:: Key-value pairs are matched using the two-argument form of the mapping
10671067
subject's ``get()`` method. Matched key-value pairs must already be present
1068-
in the mapping, and not created on-the-fly via :meth:`__missing__` or
1069-
:meth:`~object.__getitem__`.
1068+
in the mapping, and not created on-the-fly via :meth:`~object.__missing__`
1069+
or :meth:`~object.__getitem__`.
10701070

10711071
In simple terms ``{KEY1: P1, KEY2: P2, ... }`` matches only if all the following
10721072
happens:

Doc/tools/check-warnings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
from typing import TextIO
1616

1717
# Fail if NEWS nit found before this line number
18-
NEWS_NIT_THRESHOLD = 1400
18+
NEWS_NIT_THRESHOLD = 8550
1919

2020
# Exclude these whether they're dirty or clean,
2121
# because they trigger a rebuild of dirty files.

Doc/tutorial/controlflow.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1080,7 +1080,7 @@ Function Annotations
10801080
information about the types used by user-defined functions (see :pep:`3107` and
10811081
:pep:`484` for more information).
10821082

1083-
:term:`Annotations <function annotation>` are stored in the :attr:`!__annotations__`
1083+
:term:`Annotations <function annotation>` are stored in the :attr:`~object.__annotations__`
10841084
attribute of the function as a dictionary and have no effect on any other part of the
10851085
function. Parameter annotations are defined by a colon after the parameter name, followed
10861086
by an expression evaluating to the value of the annotation. Return annotations are

0 commit comments

Comments
 (0)