]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-93738: Documentation C syntax (:c:type:`PyTupleObject*` -> :c:expr:`PyTupleObject...
authorAdam Turner <9087854+AA-Turner@users.noreply.github.com>
Tue, 4 Oct 2022 23:11:54 +0000 (00:11 +0100)
committerGitHub <noreply@github.com>
Tue, 4 Oct 2022 23:11:54 +0000 (16:11 -0700)
:c:type:`PyTupleObject*` -> :c:expr:`PyTupleObject*`

Doc/c-api/typehints.rst

index 8b0b9b651e80e6521f9b47e6bf72be264a734c74..88554a346c0dda5669baebc4ea059fd5d9819678 100644 (file)
@@ -16,7 +16,7 @@ two types exist -- :ref:`GenericAlias <types-genericalias>` and
    :class:`types.GenericAlias`.  The *origin* and *args* arguments set the
    ``GenericAlias``\ 's ``__origin__`` and ``__args__`` attributes respectively.
    *origin* should be a :c:type:`PyTypeObject*`, and *args* can be a
-   :c:type:`PyTupleObject*` or any ``PyObject*``.  If *args* passed is
+   :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,)``.
    Minimal checking is done for the arguments, so the function will succeed even