Skip to content

Commit c74679b

Browse files
[3.13] gh-118181: Fix parameter markup in AST docs (GH-124473) (#124600)
gh-118181: Fix parameter markup in AST docs (GH-124473) (cherry picked from commit 09aebb1) Co-authored-by: Tomas R <[email protected]>
1 parent c2aaf50 commit c74679b

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

Doc/library/ast.rst

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

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

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

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

197-
*body* is a single node,
197+
``body`` is a single node,
198198
one of the :ref:`expression types <ast-expressions>`.
199199

200200
.. doctest::
@@ -209,7 +209,7 @@ Root nodes
209209
A single :ref:`interactive input <interactive>`, like in :ref:`tut-interac`.
210210
Node type generated by :func:`ast.parse` when *mode* is ``"single"``.
211211

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

214214
.. doctest::
215215

@@ -238,9 +238,9 @@ Root nodes
238238
# type: (int, int) -> int
239239
return a + b
240240

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

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

245245
.. doctest::
246246

@@ -1766,9 +1766,9 @@ aliases.
17661766

17671767
.. class:: TypeVar(name, bound, default_value)
17681768

1769-
A :class:`typing.TypeVar`. *name* is the name of the type variable.
1770-
*bound* is the bound or constraints, if any. If *bound* is a :class:`Tuple`,
1771-
it represents constraints; otherwise it represents the bound. *default_value*
1769+
A :class:`typing.TypeVar`. ``name`` is the name of the type variable.
1770+
``bound`` is the bound or constraints, if any. If ``bound`` is a :class:`Tuple`,
1771+
it represents constraints; otherwise it represents the bound. ``default_value``
17721772
is the default value; if the :class:`!TypeVar` has no default, this
17731773
attribute will be set to ``None``.
17741774

@@ -1796,8 +1796,8 @@ aliases.
17961796

17971797
.. class:: ParamSpec(name, default_value)
17981798

1799-
A :class:`typing.ParamSpec`. *name* is the name of the parameter specification.
1800-
*default_value* is the default value; if the :class:`!ParamSpec` has no default,
1799+
A :class:`typing.ParamSpec`. ``name`` is the name of the parameter specification.
1800+
``default_value`` is the default value; if the :class:`!ParamSpec` has no default,
18011801
this attribute will be set to ``None``.
18021802

18031803
.. doctest::
@@ -1831,8 +1831,8 @@ aliases.
18311831

18321832
.. class:: TypeVarTuple(name, default_value)
18331833

1834-
A :class:`typing.TypeVarTuple`. *name* is the name of the type variable tuple.
1835-
*default_value* is the default value; if the :class:`!TypeVarTuple` has no
1834+
A :class:`typing.TypeVarTuple`. ``name`` is the name of the type variable tuple.
1835+
``default_value`` is the default value; if the :class:`!TypeVarTuple` has no
18361836
default, this attribute will be set to ``None``.
18371837

18381838
.. doctest::

0 commit comments

Comments
 (0)