Skip to content

Commit

Permalink
[3.11] gh-93738: Documentation C syntax (:c:type:PyTupleObject* -> …
Browse files Browse the repository at this point in the history
…:c:expr:`PyTupleObject*`) (GH-97780) (#97863)

:c:type:`PyTupleObject*` -> :c:expr:`PyTupleObject*`
(cherry picked from commit 510baa4)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
  • Loading branch information
2 people authored and pablogsal committed Oct 22, 2022
1 parent 9b73bd4 commit ab665d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Doc/c-api/typehints.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ two types exist -- :ref:`GenericAlias <types-genericalias>` and
Equivalent to calling the Python class
:class:`types.GenericAlias`. The *origin* and *args* arguments set the
``GenericAlias``\ 's ``__origin__`` and ``__args__`` attributes respectively.
*origin* should be a :c:expr:`PyTypeObject*`, and *args* can be a
*origin* should be a :c:type:`PyTypeObject*`, and *args* can be a
:c:expr:`PyTupleObject*` or any ``PyObject*``. If *args* passed is
not a tuple, a 1-tuple is automatically constructed and ``__args__`` is set
to ``(args,)``.
Expand Down

0 comments on commit ab665d9

Please sign in to comment.