Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions Doc/library/ast.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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::
Expand All @@ -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::
Expand All @@ -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::

Expand Down Expand Up @@ -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::

Expand Down
Loading