https://github.com/python/cpython/commit/5d7cacb1db02cc5f93f8a575e63cf85c9a0061b5
commit: 5d7cacb1db02cc5f93f8a575e63cf85c9a0061b5
branch: 3.13
author: Hugo van Kemenade <[email protected]>
committer: Yhg1s <[email protected]>
date: 2025-12-01T23:26:32+01:00
summary:

[3.13] GH-101100: Remove some entries from ``nitpick_ignore`` (GH-138464) 
(#141827)

(cherry picked from commit 22cb9ba8f90bfbc0b8831365b6864f41b19d0b6e)

Co-authored-by: Adam Turner <[email protected]>

files:
M Doc/conf.py
M Doc/library/collections.rst
M Doc/library/inspect.rst
M Doc/library/os.path.rst
M Doc/library/pathlib.rst
M Doc/library/stdtypes.rst
M Doc/reference/compound_stmts.rst
M Doc/tools/check-warnings.py
M Doc/whatsnew/3.2.rst
M Doc/whatsnew/3.4.rst
M Doc/whatsnew/3.5.rst
M Doc/whatsnew/3.6.rst
M Misc/NEWS.d/3.12.0a1.rst
M Misc/NEWS.d/3.13.0a6.rst

diff --git a/Doc/conf.py b/Doc/conf.py
index 5418d29b6a6cd3..fd7db0140923cd 100644
--- a/Doc/conf.py
+++ b/Doc/conf.py
@@ -213,13 +213,6 @@
     ('envvar', 'USER'),
     ('envvar', 'USERNAME'),
     ('envvar', 'USERPROFILE'),
-    # Deprecated function that was never documented:
-    ('py:func', 'getargspec'),
-    ('py:func', 'inspect.getargspec'),
-    # Undocumented modules that users shouldn't have to worry about
-    # (implementation details of `os.path`):
-    ('py:mod', 'ntpath'),
-    ('py:mod', 'posixpath'),
 ]
 
 # Temporary undocumented names.
@@ -232,7 +225,6 @@
     # Attributes/methods/etc. that definitely should be documented better,
     # but are deferred for now:
     ('py:attr', '__annotations__'),
-    ('py:meth', '__missing__'),
     ('py:attr', '__wrapped__'),
 ]
 
diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst
index 17ca8b99db0235..fdd31799bd90d3 100644
--- a/Doc/library/collections.rst
+++ b/Doc/library/collections.rst
@@ -758,9 +758,9 @@ stack manipulations such as ``dup``, ``drop``, ``swap``, 
``over``, ``pick``,
 
     .. attribute:: default_factory
 
-        This attribute is used by the :meth:`__missing__` method; it is
-        initialized from the first argument to the constructor, if present, or 
to
-        ``None``, if absent.
+        This attribute is used by the :meth:`~defaultdict.__missing__` method;
+        it is initialized from the first argument to the constructor, if 
present,
+        or to ``None``, if absent.
 
     .. versionchanged:: 3.9
        Added merge (``|``) and update (``|=``) operators, specified in
diff --git a/Doc/library/inspect.rst b/Doc/library/inspect.rst
index df6a9f1d01c5d4..a741223d115da0 100644
--- a/Doc/library/inspect.rst
+++ b/Doc/library/inspect.rst
@@ -1123,7 +1123,7 @@ Classes and functions
       :func:`signature` in Python 3.5, but that decision has been reversed
       in order to restore a clearly supported standard interface for
       single-source Python 2/3 code migrating away from the legacy
-      :func:`getargspec` API.
+      :func:`!getargspec` API.
 
    .. versionchanged:: 3.7
       Python only explicitly guaranteed that it preserved the declaration
diff --git a/Doc/library/os.path.rst b/Doc/library/os.path.rst
index 88963186f5923d..e8a9de5cadb915 100644
--- a/Doc/library/os.path.rst
+++ b/Doc/library/os.path.rst
@@ -42,8 +42,8 @@ the :mod:`glob` module.)
    a path that is *always* in one of the different formats.  They all have the
    same interface:
 
-   * :mod:`posixpath` for UNIX-style paths
-   * :mod:`ntpath` for Windows paths
+   * :mod:`!posixpath` for UNIX-style paths
+   * :mod:`!ntpath` for Windows paths
 
 
 .. versionchanged:: 3.8
diff --git a/Doc/library/pathlib.rst b/Doc/library/pathlib.rst
index 0e009e4337cdb8..59a72a95559742 100644
--- a/Doc/library/pathlib.rst
+++ b/Doc/library/pathlib.rst
@@ -311,7 +311,7 @@ Pure paths provide the following methods and properties:
 .. attribute:: PurePath.parser
 
    The implementation of the :mod:`os.path` module used for low-level path
-   parsing and joining: either :mod:`posixpath` or :mod:`ntpath`.
+   parsing and joining: either :mod:`!posixpath` or :mod:`!ntpath`.
 
    .. versionadded:: 3.13
 
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
index 8af89526c81ae7..f7ac7da43b5278 100644
--- a/Doc/library/stdtypes.rst
+++ b/Doc/library/stdtypes.rst
@@ -4879,13 +4879,13 @@ can be used interchangeably to index the same 
dictionary entry.
 
       .. index:: __missing__()
 
-      If a subclass of dict defines a method :meth:`__missing__` and *key*
+      If a subclass of dict defines a method :meth:`~object.__missing__` and 
*key*
       is not present, the ``d[key]`` operation calls that method with the key 
*key*
       as argument.  The ``d[key]`` operation then returns or raises whatever is
       returned or raised by the ``__missing__(key)`` call.
-      No other operations or methods invoke :meth:`__missing__`. If
-      :meth:`__missing__` is not defined, :exc:`KeyError` is raised.
-      :meth:`__missing__` must be a method; it cannot be an instance variable::
+      No other operations or methods invoke :meth:`~object.__missing__`. If
+      :meth:`~object.__missing__` is not defined, :exc:`KeyError` is raised.
+      :meth:`~object.__missing__` must be a method; it cannot be an instance 
variable::
 
           >>> class Counter(dict):
           ...     def __missing__(self, key):
@@ -4899,7 +4899,8 @@ can be used interchangeably to index the same dictionary 
entry.
           1
 
       The example above shows part of the implementation of
-      :class:`collections.Counter`.  A different ``__missing__`` method is used
+      :class:`collections.Counter`.
+      A different :meth:`!__missing__` method is used
       by :class:`collections.defaultdict`.
 
    .. describe:: d[key] = value
diff --git a/Doc/reference/compound_stmts.rst b/Doc/reference/compound_stmts.rst
index 62f0f0018f4099..9c47cd29255dc7 100644
--- a/Doc/reference/compound_stmts.rst
+++ b/Doc/reference/compound_stmts.rst
@@ -1065,8 +1065,8 @@ subject value:
 
 .. note:: Key-value pairs are matched using the two-argument form of the 
mapping
    subject's ``get()`` method.  Matched key-value pairs must already be present
-   in the mapping, and not created on-the-fly via :meth:`__missing__` or
-   :meth:`~object.__getitem__`.
+   in the mapping, and not created on-the-fly via :meth:`~object.__missing__`
+   or :meth:`~object.__getitem__`.
 
 In simple terms ``{KEY1: P1, KEY2: P2, ... }`` matches only if all the 
following
 happens:
diff --git a/Doc/tools/check-warnings.py b/Doc/tools/check-warnings.py
index d9c4a33b775842..2ddcdb77d16e3f 100644
--- a/Doc/tools/check-warnings.py
+++ b/Doc/tools/check-warnings.py
@@ -15,7 +15,7 @@
 from typing import TextIO
 
 # Fail if NEWS nit found before this line number
-NEWS_NIT_THRESHOLD = 1400
+NEWS_NIT_THRESHOLD = 4800
 
 # Exclude these whether they're dirty or clean,
 # because they trigger a rebuild of dirty files.
diff --git a/Doc/whatsnew/3.2.rst b/Doc/whatsnew/3.2.rst
index 7104904c956a7a..47c4d9acbc870e 100644
--- a/Doc/whatsnew/3.2.rst
+++ b/Doc/whatsnew/3.2.rst
@@ -458,7 +458,7 @@ Some smaller changes made to the core Python language are:
   :class:`~collections.defaultdict`, :class:`~shelve.Shelf`,
   :class:`~configparser.ConfigParser`, or :mod:`dbm`.  It is also useful with
   custom :class:`dict` subclasses that normalize keys before look-up or that
-  supply a :meth:`__missing__` method for unknown keys::
+  supply a :meth:`~object.__missing__` method for unknown keys::
 
     >>> import shelve
     >>> d = shelve.open('tmp.shl')
diff --git a/Doc/whatsnew/3.4.rst b/Doc/whatsnew/3.4.rst
index a4c6aaa9fa773e..9f4068116e3726 100644
--- a/Doc/whatsnew/3.4.rst
+++ b/Doc/whatsnew/3.4.rst
@@ -1039,7 +1039,7 @@ As part of the implementation of the new :mod:`enum` 
module, the
 metaclasses.  (Contributed by Ethan Furman in :issue:`18929` and
 :issue:`19030`.)
 
-:func:`~inspect.getfullargspec` and :func:`~inspect.getargspec`
+:func:`~inspect.getfullargspec` and :func:`!getargspec`
 now use the :func:`~inspect.signature` API. This allows them to
 support a much broader range of callables, including those with
 ``__signature__`` attributes, those with metadata provided by argument
diff --git a/Doc/whatsnew/3.5.rst b/Doc/whatsnew/3.5.rst
index 76b82758627545..b78378c55cd59e 100644
--- a/Doc/whatsnew/3.5.rst
+++ b/Doc/whatsnew/3.5.rst
@@ -2324,7 +2324,7 @@ The previously undocumented ``from_function`` and 
``from_builtin`` methods of
 :meth:`Signature.from_callable() <inspect.Signature.from_callable>`
 method instead. (Contributed by Yury Selivanov in :issue:`24248`.)
 
-The :func:`inspect.getargspec` function is deprecated and scheduled to be
+The :func:`!inspect.getargspec` function is deprecated and scheduled to be
 removed in Python 3.6.  (See :issue:`20438` for details.)
 
 The :mod:`inspect` :func:`~inspect.getfullargspec`,
diff --git a/Doc/whatsnew/3.6.rst b/Doc/whatsnew/3.6.rst
index ea9124722d250a..4ff8780f465ba7 100644
--- a/Doc/whatsnew/3.6.rst
+++ b/Doc/whatsnew/3.6.rst
@@ -1224,7 +1224,7 @@ generator expression scopes as if they were 
positional-only parameters called
 ``implicit0``. (Contributed by Jelle Zijlstra in :issue:`19611`.)
 
 To reduce code churn when upgrading from Python 2.7 and the legacy
-:func:`inspect.getargspec` API, the previously documented deprecation of
+:func:`!inspect.getargspec` API, the previously documented deprecation of
 :func:`inspect.getfullargspec` has been reversed. While this function is
 convenient for single/source Python 2/3 code bases, the richer
 :func:`inspect.signature` interface remains the recommended approach for new
diff --git a/Misc/NEWS.d/3.12.0a1.rst b/Misc/NEWS.d/3.12.0a1.rst
index bb4696a03076c0..6b31ed6101dacf 100644
--- a/Misc/NEWS.d/3.12.0a1.rst
+++ b/Misc/NEWS.d/3.12.0a1.rst
@@ -4330,7 +4330,7 @@ and ``sendfile`` inside ``IocpProactor``.
 .. nonce: GsBL9-
 .. section: Library
 
-Fixed :meth:`collections.UserDict.get` to not call :meth:`__missing__` when
+Fixed :meth:`collections.UserDict.get` to not call :meth:`~object.__missing__` 
when
 a value is not found. This matches the behavior of :class:`dict`. Patch by
 Bar Harel.
 
diff --git a/Misc/NEWS.d/3.13.0a6.rst b/Misc/NEWS.d/3.13.0a6.rst
index 2740b4f0d967ba..ad6622d23bf36b 100644
--- a/Misc/NEWS.d/3.13.0a6.rst
+++ b/Misc/NEWS.d/3.13.0a6.rst
@@ -264,7 +264,8 @@ Improve performance of :func:`os.path.join` and 
:func:`os.path.expanduser`.
 .. nonce: hqk9Hn
 .. section: Library
 
-Raise :exc:`TypeError` for non-paths in :func:`posixpath.relpath`.
+Raise :exc:`TypeError` for non-paths in :func:`posixpath.relpath
+<os.path.relpath>`.
 
 ..
 
@@ -273,7 +274,8 @@ Raise :exc:`TypeError` for non-paths in 
:func:`posixpath.relpath`.
 .. nonce: l6rWlj
 .. section: Library
 
-Preserve mailbox ownership when rewriting in :func:`mailbox.mbox.flush`.
+Preserve mailbox ownership when rewriting in :func:`mailbox.mbox.flush
+<mailbox.Mailbox.flush>`.
 Patch by Tony Mountifield.
 
 ..

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to