]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
fix param type in PyObject_HasAttrWithError (docs) (#127403)
authorbiggus-developerus <74741815+biggus-developerus@users.noreply.github.com>
Fri, 29 Nov 2024 10:53:34 +0000 (14:53 +0400)
committerGitHub <noreply@github.com>
Fri, 29 Nov 2024 10:53:34 +0000 (10:53 +0000)
Doc/c-api/object.rst

index 2ac975ff7d1a59d0c08a29c1e2a6658b901f1ead..1ae3c46bea46ea3da4c20c177cfb771b8720661c 100644 (file)
@@ -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)``.