]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] gh-125674: Doc: Fix type of newfunc first parameter (GH-125675) (#128448)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 3 Jan 2025 14:13:18 +0000 (15:13 +0100)
committerGitHub <noreply@github.com>
Fri, 3 Jan 2025 14:13:18 +0000 (14:13 +0000)
(cherry picked from commit 616468b87bc5bcf5a4db688637ef748e1243db8a)

Co-authored-by: Richard Hansen <rhansen@rhansen.org>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Doc/c-api/typeobj.rst

index 9fc3d358371b170c5a16f57fbc040b52c59c0796..3d27784d4fe21bf31e9bfaf9f40bc9f5523a3b63 100644 (file)
@@ -355,7 +355,7 @@ slot typedefs
 +-----------------------------+-----------------------------+----------------------+
 | :c:type:`newfunc`           | .. line-block::             | :c:type:`PyObject` * |
 |                             |                             |                      |
-|                             |    :c:type:`PyObject` *     |                      |
+|                             |    :c:type:`PyTypeObject` * |                      |
 |                             |    :c:type:`PyObject` *     |                      |
 |                             |    :c:type:`PyObject` *     |                      |
 +-----------------------------+-----------------------------+----------------------+
@@ -2610,7 +2610,7 @@ Slot Type typedefs
 
    See :c:member:`~PyTypeObject.tp_free`.
 
-.. c:type:: PyObject *(*newfunc)(PyObject *, PyObject *, PyObject *)
+.. c:type:: PyObject *(*newfunc)(PyTypeObject *, PyObject *, PyObject *)
 
    See :c:member:`~PyTypeObject.tp_new`.