summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-10-04 23:46:30 (GMT)
committerGitHub <noreply@github.com>2022-10-04 23:46:30 (GMT)
commit9c755d7d6b77b0f9e98dea94b035459990ab19be (patch)
tree24bfd86962ddb3abea1f61419b0cf384248a4092 /Doc
parent5aa108b9e045849bbbf5b2aedc207356198ee840 (diff)
downloadcpython-9c755d7d6b77b0f9e98dea94b035459990ab19be.zip
cpython-9c755d7d6b77b0f9e98dea94b035459990ab19be.tar.gz
cpython-9c755d7d6b77b0f9e98dea94b035459990ab19be.tar.bz2
[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 510baa429affb832d7b4ed68182e59daa2815d2e) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Diffstat (limited to 'Doc')
-rw-r--r--Doc/c-api/typehints.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/c-api/typehints.rst b/Doc/c-api/typehints.rst
index dfda96a..79f29ac 100644
--- a/Doc/c-api/typehints.rst
+++ b/Doc/c-api/typehints.rst
@@ -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