Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ab665d9

Browse filesBrowse files
miss-islingtonAA-Turner
authored andcommitted
[3.11] gh-93738: Documentation C syntax (:c:type:PyTupleObject* -> :c:expr:PyTupleObject*) (GH-97780) (#97863)
:c:type:`PyTupleObject*` -> :c:expr:`PyTupleObject*` (cherry picked from commit 510baa4) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
1 parent 9b73bd4 commit ab665d9
Copy full SHA for ab665d9

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎Doc/c-api/typehints.rst

Copy file name to clipboardExpand all lines: Doc/c-api/typehints.rst
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ two types exist -- :ref:`GenericAlias <types-genericalias>` and
1515
Equivalent to calling the Python class
1616
:class:`types.GenericAlias`. The *origin* and *args* arguments set the
1717
``GenericAlias``\ 's ``__origin__`` and ``__args__`` attributes respectively.
18-
*origin* should be a :c:expr:`PyTypeObject*`, and *args* can be a
18+
*origin* should be a :c:type:`PyTypeObject*`, and *args* can be a
1919
:c:expr:`PyTupleObject*` or any ``PyObject*``. If *args* passed is
2020
not a tuple, a 1-tuple is automatically constructed and ``__args__`` is set
2121
to ``(args,)``.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.