Skip to content

Commit f8b24cd

Browse files
miss-islingtonrhansenJelleZijlstra
authored
[3.13] gh-125674: Doc: Fix type of newfunc first parameter (GH-125675) (#128449)
(cherry picked from commit 616468b) Co-authored-by: Richard Hansen <[email protected]> Co-authored-by: Jelle Zijlstra <[email protected]>
1 parent e0f0d2d commit f8b24cd

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
+-----------------------------+-----------------------------+----------------------+
@@ -2618,7 +2618,7 @@ Slot Type typedefs
26182618
26192619
See :c:member:`~PyTypeObject.tp_free`.
26202620

2621-
.. c:type:: PyObject *(*newfunc)(PyObject *, PyObject *, PyObject *)
2621+
.. c:type:: PyObject *(*newfunc)(PyTypeObject *, PyObject *, PyObject *)
26222622
26232623
See :c:member:`~PyTypeObject.tp_new`.
26242624

0 commit comments

Comments
 (0)