Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 343bca6 commit b0c8165Copy full SHA for b0c8165
1 file changed
Doc/c-api/function.rst
@@ -81,3 +81,15 @@ There are a few functions specific to Python functions.
81
*Py_None* or a tuple of cell objects.
82
83
Raises :exc:`SystemError` and returns ``-1`` on failure.
84
+
85
86
+.. cfunction:: PyObject *PyFunction_GetAnnotations(PyObject *op)
87
88
+ Return the annotations of the function object *op*. This can be a
89
+ mutable dictionary or *NULL*.
90
91
92
+.. cfunction:: int PyFunction_SetAnnotations(PyObject *op, PyObject *annotations)
93
94
+ Set the annotations for the function object *op*. *annotations*
95
+ must be a dictionary or *Py_None*.
0 commit comments