diff options
author | Adam Turner <9087854+AA-Turner@users.noreply.github.com> | 2022-10-04 23:11:54 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-04 23:11:54 (GMT) |
commit | 510baa429affb832d7b4ed68182e59daa2815d2e (patch) | |
tree | 15be25dbfdb53ba49cc14fdb5cab7a6feefea091 /Doc | |
parent | 9ebc50866b58a0ee2985c6540a67fee8a4a49e4d (diff) | |
download | cpython-510baa429affb832d7b4ed68182e59daa2815d2e.zip cpython-510baa429affb832d7b4ed68182e59daa2815d2e.tar.gz cpython-510baa429affb832d7b4ed68182e59daa2815d2e.tar.bz2 |
gh-93738: Documentation C syntax (:c:type:`PyTupleObject*` -> :c:expr:`PyTupleObject*`) (#97780)
:c:type:`PyTupleObject*` -> :c:expr:`PyTupleObject*`
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/c-api/typehints.rst | 2 |
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 |