From: Richard Hansen Date: Wed, 30 Oct 2024 20:27:37 +0000 (-0400) Subject: gh-125674: Doc: Fix type of `newfunc` first parameter (GH-125675) X-Git-Tag: v3.14.0a2~234 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=616468b87bc5bcf5a4db688637ef748e1243db8a;p=thirdparty%2FPython%2Fcpython.git 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 --------- Co-authored-by: Jelle Zijlstra --- diff --git a/Doc/c-api/typeobj.rst b/Doc/c-api/typeobj.rst index 0c59b3da0795..8a185486fe44 100644 --- a/Doc/c-api/typeobj.rst +++ b/Doc/c-api/typeobj.rst @@ -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`.