Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 09aebb1

Browse filesBrowse files
authored
gh-118181: Fix parameter markup in AST docs (#124473)
1 parent 274d9ab commit 09aebb1
Copy full SHA for 09aebb1

File tree

1 file changed

+13
-13
lines changed
Filter options

1 file changed

+13
-13
lines changed

‎Doc/library/ast.rst

Copy file name to clipboardExpand all lines: Doc/library/ast.rst
+13-13Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -178,9 +178,9 @@ Root nodes
178178
A Python module, as with :ref:`file input <file-input>`.
179179
Node type generated by :func:`ast.parse` in the default ``"exec"`` *mode*.
180180

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

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

186186
.. doctest::
@@ -199,7 +199,7 @@ Root nodes
199199
A single Python :ref:`expression input <expression-input>`.
200200
Node type generated by :func:`ast.parse` when *mode* is ``"eval"``.
201201

202-
*body* is a single node,
202+
``body`` is a single node,
203203
one of the :ref:`expression types <ast-expressions>`.
204204

205205
.. doctest::
@@ -214,7 +214,7 @@ Root nodes
214214
A single :ref:`interactive input <interactive>`, like in :ref:`tut-interac`.
215215
Node type generated by :func:`ast.parse` when *mode* is ``"single"``.
216216

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

219219
.. doctest::
220220

@@ -243,9 +243,9 @@ Root nodes
243243
# type: (int, int) -> int
244244
return a + b
245245

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

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

250250
.. doctest::
251251

@@ -1771,9 +1771,9 @@ aliases.
17711771

17721772
.. class:: TypeVar(name, bound, default_value)
17731773

1774-
A :class:`typing.TypeVar`. *name* is the name of the type variable.
1775-
*bound* is the bound or constraints, if any. If *bound* is a :class:`Tuple`,
1776-
it represents constraints; otherwise it represents the bound. *default_value*
1774+
A :class:`typing.TypeVar`. ``name`` is the name of the type variable.
1775+
``bound`` is the bound or constraints, if any. If ``bound`` is a :class:`Tuple`,
1776+
it represents constraints; otherwise it represents the bound. ``default_value``
17771777
is the default value; if the :class:`!TypeVar` has no default, this
17781778
attribute will be set to ``None``.
17791779

@@ -1801,8 +1801,8 @@ aliases.
18011801

18021802
.. class:: ParamSpec(name, default_value)
18031803

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

18081808
.. doctest::
@@ -1836,8 +1836,8 @@ aliases.
18361836

18371837
.. class:: TypeVarTuple(name, default_value)
18381838

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

18431843
.. doctest::

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.