summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 8b0b9b6..88554a3 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