Skip to content

Commit

Permalink
pythongh-125674: Doc: Fix type of newfunc first parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
rhansen committed Oct 18, 2024
1 parent a0f5c8e commit feee5d8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Doc/c-api/typeobj.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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` * | |
+-----------------------------+-----------------------------+----------------------+
Expand Down Expand Up @@ -2645,7 +2645,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`.

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Fixed incorrect documented type for the first parameter of the
:c:type:`newfunc` C function type.

0 comments on commit feee5d8

Please sign in to comment.