File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -310,7 +310,7 @@ Object Protocol
310
310
is equivalent to the Python expression ``type(o) ``. This function increments the
311
311
reference count of the return value. There's really no reason to use this
312
312
function instead of the :c:func: `Py_TYPE() ` function, which returns a
313
- pointer of type :c:type : `PyTypeObject* `, except when the incremented reference
313
+ pointer of type :c:expr : `PyTypeObject* `, except when the incremented reference
314
314
count is needed.
315
315
316
316
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ two types exist -- :ref:`GenericAlias <types-genericalias>` and
15
15
Equivalent to calling the Python class
16
16
:class: `types.GenericAlias `. The *origin * and *args * arguments set the
17
17
``GenericAlias ``\ 's ``__origin__ `` and ``__args__ `` attributes respectively.
18
- *origin * should be a :c:type : `PyTypeObject* `, and *args * can be a
18
+ *origin * should be a :c:expr : `PyTypeObject* `, and *args * can be a
19
19
:c:expr: `PyTupleObject* ` or any ``PyObject* ``. If *args * passed is
20
20
not a tuple, a 1-tuple is automatically constructed and ``__args__ `` is set
21
21
to ``(args,) ``.
You can’t perform that action at this time.
0 commit comments