[3.12] gh-118181: Fix parameter markup in AST docs (GH-124473). (#124705)

(cherry picked from commit 09aebb1fbc)
This commit is contained in:
Tomas R 2024-09-27 22:13:00 +02:00 committed by GitHub
parent a4916e6013
commit 2fa9ca5070
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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::