Skip to content

Commit ad71922

Browse files
rhansenJelleZijlstra
authored andcommitted
gh-125674: Doc: Fix type of newfunc first parameter (GH-125675)
* gh-125674: Doc: Fix type of `newfunc` first parameter * fixup! gh-125674: Doc: Fix type of `newfunc` first parameter --------- (cherry picked from commit 616468b) Co-authored-by: Richard Hansen <[email protected]> Co-authored-by: Jelle Zijlstra <[email protected]>
1 parent 0d3f4b6 commit ad71922

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-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
+-----------------------------+-----------------------------+----------------------+
@@ -2610,7 +2610,7 @@ Slot Type typedefs
26102610
26112611
See :c:member:`~PyTypeObject.tp_free`.
26122612

2613-
.. c:type:: PyObject *(*newfunc)(PyObject *, PyObject *, PyObject *)
2613+
.. c:type:: PyObject *(*newfunc)(PyTypeObject *, PyObject *, PyObject *)
26142614
26152615
See :c:member:`~PyTypeObject.tp_new`.
26162616

0 commit comments

Comments
 (0)