8000 [3.10] gh-93738: Documentation C syntax (:c:type:`PyTupleObject*` -> … · python/cpython@9c755d7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9c755d7

Browse files
[3.10] gh-93738: Documentation C syntax (:c:type:PyTupleObject* -> :c:expr:PyTupleObject*) (GH-97780) (#97864)
:c:type:`PyTupleObject*` -> :c:expr:`PyTupleObject*` (cherry picked from commit 510baa4) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
1 parent 5aa108b commit 9c755d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/c-api/typehints.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ two types exist -- :ref:`GenericAlias <types-genericalias>` and
1616
:class:`types.GenericAlias`. The *origin* and *args* arguments set the
1717
``GenericAlias``\ 's ``__origin__`` and ``__args__`` attributes respectively.
1818
*origin* should be a :c:type:`PyTypeObject*`, and *args* can be a
19-
:c:type:`PyTupleObject*` or any ``PyObject*``. If *args* passed is
19+
:c:expr:`PyTupleObject*` or any ``PyObject*``. If *args* passed is
2020
not a tuple, a 1-tuple is automatically constructed and ``__args__`` is set
2121
to ``(args,)``.
2222
Minimal checking is done for the arguments, so the function will succeed even

0 commit comments

Comments
 (0)
0