]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] gh-118181: Fix parameter markup in AST docs (GH-124473). (#124705)
authorTomas R <tomas.roun8@gmail.com>
Fri, 27 Sep 2024 20:13:00 +0000 (22:13 +0200)
committerGitHub <noreply@github.com>
Fri, 27 Sep 2024 20:13:00 +0000 (20:13 +0000)
(cherry picked from commit 09aebb1fbc0c1d771d4942844d5e2077fcdf56c9)

Doc/library/ast.rst

index e745924dac111aea694b1d012743555ccdef7c89..e6010f3c64e3529e5425f04ce03262401c7ee098 100644 (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::