pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/python/cpython/commit/22cb9ba8f90bfbc0b8831365b6864f41b19d0b6e

GH-101100: Remove some entries from ``nitpick_ignore`` (#138464) · python/cpython@22cb9ba · GitHub
Skip to content

Commit 22cb9ba

Browse files
authored
GH-101100: Remove some entries from nitpick_ignore (#138464)
1 parent 1561385 commit 22cb9ba

18 files changed

Lines changed: 33 additions & 34 deletions

Doc/conf.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -221,13 +221,6 @@
221221
('envvar', 'USER'),
222222
('envvar', 'USERNAME'),
223223
('envvar', 'USERPROFILE'),
224-
# Deprecated function that was never documented:
225-
('py:func', 'getargspec'),
226-
('py:func', 'inspect.getargspec'),
227-
# Undocumented modules that users shouldn't have to worry about
228-
# (implementation details of `os.path`):
229-
('py:mod', 'ntpath'),
230-
('py:mod', 'posixpath'),
231224
]
232225

233226
# Temporary undocumented names.
@@ -242,8 +235,6 @@
242235
('py:meth', '_SubParsersAction.add_parser'),
243236
# Attributes/methods/etc. that definitely should be documented better,
244237
# but are deferred for now:
245-
('py:attr', '__annotations__'),
246-
('py:meth', '__missing__'),
247238
('py:attr', '__wrapped__'),
248239
]
249240

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
@@ -439,7 +439,7 @@ Module contents
439439
function is used.
440440

441441
This function is not strictly required, because any Python
442-
mechanism for creating a new class with :attr:`!__annotations__` can
442+
mechanism for creating a new class with :attr:`~object.__annotations__` can
443443
then apply the :func:`@dataclass <dataclass>` function to convert that class to
444444
a dataclass. This function is provided as a convenience. For
445445
example::

Doc/library/dis.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1086,6 +1086,11 @@ iterations of the loop.
10861086
Pushes ``co_consts[consti]`` onto the stack.
10871087

10881088

1089+
.. opcode:: LOAD_CONST_IMMORTAL (consti)
1090+
1091+
Works as :opcode:`LOAD_CONST`, but is more efficient for immortal objects.
1092+
1093+
10891094
.. opcode:: LOAD_SMALL_INT (i)
10901095

10911096
Pushes the integer ``i`` onto the stack.

Doc/library/inspect.rst

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

11841184
.. versionchanged:: 3.7
11851185
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
@@ -5014,13 +5014,13 @@ can be used interchangeably to index the same dictionary entry.
50145014

50155015
.. index:: __missing__()
50165016

5017-
If a subclass of dict defines a method :meth:`__missing__` and *key*
5017+
If a subclass of dict defines a method :meth:`~object.__missing__` and *key*
50185018
is not present, the ``d[key]`` operation calls that method with the key *key*
50195019
as argument. The ``d[key]`` operation then returns or raises whatever is
50205020
returned or raised by the ``__missing__(key)`` call.
5021-
No other operations or methods invoke :meth:`__missing__`. If
5022-
:meth:`__missing__` is not defined, :exc:`KeyError` is raised.
5023-
:meth:`__missing__` must be a method; it cannot be an instance variable::
5021+
No other operations or methods invoke :meth:`~object.__missing__`. If
5022+
:meth:`~object.__missing__` is not defined, :exc:`KeyError` is raised.
5023+
:meth:`~object.__missing__` must be a method; it cannot be an instance variable::
50245024

50255025
>>> class Counter(dict):
50265026
... def __missing__(self, key):
@@ -5034,7 +5034,8 @@ can be used interchangeably to index the same dictionary entry.
50345034
1
50355035

50365036
The example above shows part of the implementation of
5037-
:class:`collections.Counter`. A different ``__missing__`` method is used
5037+
:class:`collections.Counter`.
5038+
A different :meth:`!__missing__` method is used
50385039
by :class:`collections.defaultdict`.
50395040

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

Doc/reference/compound_stmts.rst

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

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

10731073
In simple terms ``{KEY1: P1, KEY2: P2, ... }`` matches only if all the following
10741074
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 = 1700
18+
NEWS_NIT_THRESHOLD = 8550
1919

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

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy