Skip to content

Commit

Permalink
fix param type in PyObject_HasAttrWithError (docs) (#127403)
Browse files Browse the repository at this point in the history
  • Loading branch information
biggus-developerus authored Nov 29, 2024
1 parent 322b486 commit 3afb639
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Doc/c-api/object.rst
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ Object Protocol
instead of the :func:`repr`.
.. c:function:: int PyObject_HasAttrWithError(PyObject *o, const char *attr_name)
.. c:function:: int PyObject_HasAttrWithError(PyObject *o, PyObject *attr_name)
Returns ``1`` if *o* has the attribute *attr_name*, and ``0`` otherwise.
This is equivalent to the Python expression ``hasattr(o, attr_name)``.
Expand Down

0 comments on commit 3afb639

Please sign in to comment.