Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
PyTupleObject*
1 parent 9ebc508 commit 510baa4Copy full SHA for 510baa4
1 file changed
Doc/c-api/typehints.rst
@@ -16,7 +16,7 @@ two types exist -- :ref:`GenericAlias <types-genericalias>` and
16
:class:`types.GenericAlias`. The *origin* and *args* arguments set the
17
``GenericAlias``\ 's ``__origin__`` and ``__args__`` attributes respectively.
18
*origin* should be a :c:type:`PyTypeObject*`, and *args* can be a
19
- :c:type:`PyTupleObject*` or any ``PyObject*``. If *args* passed is
+ :c:expr:`PyTupleObject*` or any ``PyObject*``. If *args* passed is
20
not a tuple, a 1-tuple is automatically constructed and ``__args__`` is set
21
to ``(args,)``.
22
Minimal checking is done for the arguments, so the function will succeed even
0 commit comments