Skip to content

Commit 2fa9ca5

Browse files
authored
[3.12] gh-118181: Fix parameter markup in AST docs (GH-124473). (#124705)
(cherry picked from commit 09aebb1)
1 parent a4916e6 commit 2fa9ca5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Doc/library/ast.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,9 @@ Root nodes
157157
A Python module, as with :ref:`file input <file-input>`.
158158
Node type generated by :func:`ast.parse` in the default ``"exec"`` *mode*.
159159

160-
*body* is a :class:`list` of the module's :ref:`ast-statements`.
160+
``body`` is a :class:`list` of the module's :ref:`ast-statements`.
161161

162-
*type_ignores* is a :class:`list` of the module's type ignore comments;
162+
``type_ignores`` is a :class:`list` of the module's type ignore comments;
163163
see :func:`ast.parse` for more details.
164164

165165
.. doctest::
@@ -179,7 +179,7 @@ Root nodes
179179
A single Python :ref:`expression input <expression-input>`.
180180
Node type generated by :func:`ast.parse` when *mode* is ``"eval"``.
181181

182-
*body* is a single node,
182+
``body`` is a single node,
183183
one of the :ref:`expression types <ast-expressions>`.
184184

185185
.. doctest::
@@ -194,7 +194,7 @@ Root nodes
194194
A single :ref:`interactive input <interactive>`, like in :ref:`tut-interac`.
195195
Node type generated by :func:`ast.parse` when *mode* is ``"single"``.
196196

197-
*body* is a :class:`list` of :ref:`statement nodes <ast-statements>`.
197+
``body`` is a :class:`list` of :ref:`statement nodes <ast-statements>`.
198198

199199
.. doctest::
200200

@@ -223,9 +223,9 @@ Root nodes
223223
# type: (int, int) -> int
224224
return a + b
225225

226-
*argtypes* is a :class:`list` of :ref:`expression nodes <ast-expressions>`.
226+
``argtypes`` is a :class:`list` of :ref:`expression nodes <ast-expressions>`.
227227

228-
*returns* is a single :ref:`expression node <ast-expressions>`.
228+
``returns`` is a single :ref:`expression node <ast-expressions>`.
229229

230230
.. doctest::
231231

0 commit comments

Comments
 (0)