fix param type in PyObject_HasAttrWithError (docs) (GH-127403)
(cherry picked from commit
3afb639f39e89888194d8e74cc498c8da3a58d8e)
Co-authored-by: biggus-developerus <74741815+biggus-developerus@users.noreply.github.com>
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)``.