]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] fix param type in PyObject_HasAttrWithError (docs) (GH-127403) (#127404)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 29 Nov 2024 10:59:13 +0000 (11:59 +0100)
committerGitHub <noreply@github.com>
Fri, 29 Nov 2024 10:59:13 +0000 (10:59 +0000)
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>
Doc/c-api/object.rst

index 630114a4339110f679416fcb483b69366ccf3be4..1e822fad13aa5d51d0e27aa2f75a984b0696718b 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)``.