Skip to content

Commit 92d14b7

Browse files
[3.13] fix param type in PyObject_HasAttrWithError (docs) (GH-127403) (#127404)
fix param type in PyObject_HasAttrWithError (docs) (GH-127403) (cherry picked from commit 3afb639) Co-authored-by: biggus-developerus <[email protected]>
1 parent 47b0f8f commit 92d14b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/c-api/object.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ Object Protocol
8585
instead of the :func:`repr`.
8686
8787
88-
.. c:function:: int PyObject_HasAttrWithError(PyObject *o, const char *attr_name)
88+
.. c:function:: int PyObject_HasAttrWithError(PyObject *o, PyObject *attr_name)
8989
9090
Returns ``1`` if *o* has the attribute *attr_name*, and ``0`` otherwise.
9191
This is equivalent to the Python expression ``hasattr(o, attr_name)``.

0 commit comments

Comments
 (0)