From 3afb639f39e89888194d8e74cc498c8da3a58d8e Mon Sep 17 00:00:00 2001 From: biggus-developerus <74741815+biggus-developerus@users.noreply.github.com> Date: Fri, 29 Nov 2024 14:53:34 +0400 Subject: [PATCH] fix param type in PyObject_HasAttrWithError (docs) (#127403) --- Doc/c-api/object.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/c-api/object.rst b/Doc/c-api/object.rst index 2ac975ff7d1..1ae3c46bea4 100644 --- a/Doc/c-api/object.rst +++ b/Doc/c-api/object.rst @@ -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)``.