[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 3afb639f39)

Co-authored-by: biggus-developerus <74741815+biggus-developerus@users.noreply.github.com>
This commit is contained in:
Miss Islington (bot) 2024-11-29 11:59:13 +01:00 committed by GitHub
parent 47b0f8f297
commit 92d14b7fab
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -85,7 +85,7 @@ Object Protocol
instead of the :func:`repr`. 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. Returns ``1`` if *o* has the attribute *attr_name*, and ``0`` otherwise.
This is equivalent to the Python expression ``hasattr(o, attr_name)``. This is equivalent to the Python expression ``hasattr(o, attr_name)``.