From c70fa8065b8d09f9a25e026ba00596fd7960dab8 Mon Sep 17 00:00:00 2001 From: biggus-developerus <74741815+biggus-developerus@users.noreply.github.com> Date: Fri, 29 Nov 2024 14:38:34 +0400 Subject: [PATCH] fix param type in PyObject_HasAttrWithError --- 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 2ac975ff7d1a59..1ae3c46bea46ea 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)``.