]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-125674: Doc: Fix type of `newfunc` first parameter (GH-125675)
authorRichard Hansen <rhansen@rhansen.org>
Wed, 30 Oct 2024 20:27:37 +0000 (16:27 -0400)
committerGitHub <noreply@github.com>
Wed, 30 Oct 2024 20:27:37 +0000 (13:27 -0700)
* gh-125674: Doc: Fix type of `newfunc` first parameter

* fixup! gh-125674: Doc: Fix type of `newfunc` first parameter

---------

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

index 0c59b3da0795cb705fad724b2480425d30cdf251..8a185486fe44f1d655592a4f37ea024f1d51e3cd 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` *     |                      |
 +-----------------------------+-----------------------------+----------------------+
@@ -2647,7 +2647,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`.