mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
[3.12] gh-101100: Fix Sphinx nitpicks in library/inspect.rst
and reference/simple_stmts.rst
(GH-113107) (#113109)
gh-101100: Fix Sphinx nitpicks in `library/inspect.rst` and `reference/simple_stmts.rst` (GH-113107)
(cherry picked from commit 4b3cb082da
)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
This commit is contained in:
parent
59a22d3e50
commit
dc568dd226
3 changed files with 7 additions and 5 deletions
|
@ -239,6 +239,10 @@ nitpick_ignore += [
|
||||||
# be resolved, as the method is currently undocumented. For context, see
|
# be resolved, as the method is currently undocumented. For context, see
|
||||||
# https://github.com/python/cpython/pull/103289.
|
# https://github.com/python/cpython/pull/103289.
|
||||||
('py:meth', '_SubParsersAction.add_parser'),
|
('py:meth', '_SubParsersAction.add_parser'),
|
||||||
|
# Attributes that definitely should be documented better,
|
||||||
|
# but are deferred for now:
|
||||||
|
('py:attr', '__annotations__'),
|
||||||
|
('py:attr', '__wrapped__'),
|
||||||
]
|
]
|
||||||
|
|
||||||
# gh-106948: Copy standard C types declared in the "c:type" domain to the
|
# gh-106948: Copy standard C types declared in the "c:type" domain to the
|
||||||
|
|
|
@ -214,7 +214,7 @@ Assignment of an object to a single target is recursively defined as follows.
|
||||||
object. This can either replace an existing key/value pair with the same key
|
object. This can either replace an existing key/value pair with the same key
|
||||||
value, or insert a new key/value pair (if no key with the same value existed).
|
value, or insert a new key/value pair (if no key with the same value existed).
|
||||||
|
|
||||||
For user-defined objects, the :meth:`__setitem__` method is called with
|
For user-defined objects, the :meth:`~object.__setitem__` method is called with
|
||||||
appropriate arguments.
|
appropriate arguments.
|
||||||
|
|
||||||
.. index:: pair: slicing; assignment
|
.. index:: pair: slicing; assignment
|
||||||
|
@ -351,7 +351,7 @@ If the right hand side is present, an annotated
|
||||||
assignment performs the actual assignment before evaluating annotations
|
assignment performs the actual assignment before evaluating annotations
|
||||||
(where applicable). If the right hand side is not present for an expression
|
(where applicable). If the right hand side is not present for an expression
|
||||||
target, then the interpreter evaluates the target except for the last
|
target, then the interpreter evaluates the target except for the last
|
||||||
:meth:`__setitem__` or :meth:`__setattr__` call.
|
:meth:`~object.__setitem__` or :meth:`~object.__setattr__` call.
|
||||||
|
|
||||||
.. seealso::
|
.. seealso::
|
||||||
|
|
||||||
|
@ -932,7 +932,7 @@ That is not a future statement; it's an ordinary import statement with no
|
||||||
special semantics or syntax restrictions.
|
special semantics or syntax restrictions.
|
||||||
|
|
||||||
Code compiled by calls to the built-in functions :func:`exec` and :func:`compile`
|
Code compiled by calls to the built-in functions :func:`exec` and :func:`compile`
|
||||||
that occur in a module :mod:`M` containing a future statement will, by default,
|
that occur in a module :mod:`!M` containing a future statement will, by default,
|
||||||
use the new syntax or semantics associated with the future statement. This can
|
use the new syntax or semantics associated with the future statement. This can
|
||||||
be controlled by optional arguments to :func:`compile` --- see the documentation
|
be controlled by optional arguments to :func:`compile` --- see the documentation
|
||||||
of that function for details.
|
of that function for details.
|
||||||
|
|
|
@ -67,7 +67,6 @@ Doc/library/http.client.rst
|
||||||
Doc/library/http.cookiejar.rst
|
Doc/library/http.cookiejar.rst
|
||||||
Doc/library/http.server.rst
|
Doc/library/http.server.rst
|
||||||
Doc/library/importlib.rst
|
Doc/library/importlib.rst
|
||||||
Doc/library/inspect.rst
|
|
||||||
Doc/library/locale.rst
|
Doc/library/locale.rst
|
||||||
Doc/library/logging.config.rst
|
Doc/library/logging.config.rst
|
||||||
Doc/library/logging.handlers.rst
|
Doc/library/logging.handlers.rst
|
||||||
|
@ -133,7 +132,6 @@ Doc/reference/compound_stmts.rst
|
||||||
Doc/reference/datamodel.rst
|
Doc/reference/datamodel.rst
|
||||||
Doc/reference/expressions.rst
|
Doc/reference/expressions.rst
|
||||||
Doc/reference/import.rst
|
Doc/reference/import.rst
|
||||||
Doc/reference/simple_stmts.rst
|
|
||||||
Doc/tutorial/datastructures.rst
|
Doc/tutorial/datastructures.rst
|
||||||
Doc/using/windows.rst
|
Doc/using/windows.rst
|
||||||
Doc/whatsnew/2.0.rst
|
Doc/whatsnew/2.0.rst
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue