Skip to content

Commit

Permalink
fix param type in PyObject_HasAttrWithError (docs) (GH-127403)
Browse files Browse the repository at this point in the history
(cherry picked from commit 3afb639)

Co-authored-by: biggus-developerus <[email protected]>
  • Loading branch information
biggus-developerus authored and miss-islington committed Nov 29, 2024
1 parent 47b0f8f commit 0fce489
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 0fce489

Please sign in to comment.