Skip to content

Commit

Permalink
pythongh-93738: Documentation C syntax (:c:type:PyTupleObject* -> :…
Browse files Browse the repository at this point in the history
…c:expr:`PyTupleObject*`) (python#97780)

:c:type:`PyTupleObject*` -> :c:expr:`PyTupleObject*`
  • Loading branch information
AA-Turner authored and mpage committed Oct 11, 2022
1 parent 86e2243 commit ff43073
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Doc/c-api/typehints.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ff43073

Please sign in to comment.