Skip to content

Commit feee5d8

Browse files
committed
pythongh-125674: Doc: Fix type of newfunc first parameter
1 parent a0f5c8e commit feee5d8

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Doc/c-api/typeobj.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ slot typedefs
355355
+-----------------------------+-----------------------------+----------------------+
356356
| :c:type:`newfunc` | .. line-block:: | :c:type:`PyObject` * |
357357
| | | |
358-
| | :c:type:`PyObject` * | |
358+
| | :c:type:`PyTypeObject` * | |
359359
| | :c:type:`PyObject` * | |
360360
| | :c:type:`PyObject` * | |
361361
+-----------------------------+-----------------------------+----------------------+
@@ -2645,7 +2645,7 @@ Slot Type typedefs
26452645
26462646
See :c:member:`~PyTypeObject.tp_free`.
26472647

2648-
.. c:type:: PyObject *(*newfunc)(PyObject *, PyObject *, PyObject *)
2648+
.. c:type:: PyObject *(*newfunc)(PyTypeObject *, PyObject *, PyObject *)
26492649
26502650
See :c:member:`~PyTypeObject.tp_new`.
26512651

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Fixed incorrect documented type for the first parameter of the
2+
:c:type:`newfunc` C function type.

0 commit comments

Comments
 (0)