mirror of
https://github.com/python/cpython.git
synced 2026-01-05 23:12:38 +00:00
[3.12] gh-118181: Fix parameter markup in AST docs (GH-124473). (#124705)
(cherry picked from commit 09aebb1fbc)
This commit is contained in:
parent
a4916e6013
commit
2fa9ca5070
1 changed files with 6 additions and 6 deletions
|
|
@ -157,9 +157,9 @@ Root nodes
|
|||
A Python module, as with :ref:`file input <file-input>`.
|
||||
Node type generated by :func:`ast.parse` in the default ``"exec"`` *mode*.
|
||||
|
||||
*body* is a :class:`list` of the module's :ref:`ast-statements`.
|
||||
``body`` is a :class:`list` of the module's :ref:`ast-statements`.
|
||||
|
||||
*type_ignores* is a :class:`list` of the module's type ignore comments;
|
||||
``type_ignores`` is a :class:`list` of the module's type ignore comments;
|
||||
see :func:`ast.parse` for more details.
|
||||
|
||||
.. doctest::
|
||||
|
|
@ -179,7 +179,7 @@ Root nodes
|
|||
A single Python :ref:`expression input <expression-input>`.
|
||||
Node type generated by :func:`ast.parse` when *mode* is ``"eval"``.
|
||||
|
||||
*body* is a single node,
|
||||
``body`` is a single node,
|
||||
one of the :ref:`expression types <ast-expressions>`.
|
||||
|
||||
.. doctest::
|
||||
|
|
@ -194,7 +194,7 @@ Root nodes
|
|||
A single :ref:`interactive input <interactive>`, like in :ref:`tut-interac`.
|
||||
Node type generated by :func:`ast.parse` when *mode* is ``"single"``.
|
||||
|
||||
*body* is a :class:`list` of :ref:`statement nodes <ast-statements>`.
|
||||
``body`` is a :class:`list` of :ref:`statement nodes <ast-statements>`.
|
||||
|
||||
.. doctest::
|
||||
|
||||
|
|
@ -223,9 +223,9 @@ Root nodes
|
|||
# type: (int, int) -> int
|
||||
return a + b
|
||||
|
||||
*argtypes* is a :class:`list` of :ref:`expression nodes <ast-expressions>`.
|
||||
``argtypes`` is a :class:`list` of :ref:`expression nodes <ast-expressions>`.
|
||||
|
||||
*returns* is a single :ref:`expression node <ast-expressions>`.
|
||||
``returns`` is a single :ref:`expression node <ast-expressions>`.
|
||||
|
||||
.. doctest::
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue