Skip to content

Commit 3065b87

Browse files
committed
Mention the behaviour of PyFunction_SetAnnotations() on error.
1 parent b0c8165 commit 3065b87

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Doc/c-api/function.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,3 +93,5 @@ There are a few functions specific to Python functions.
9393

9494
Set the annotations for the function object *op*. *annotations*
9595
must be a dictionary or *Py_None*.
96+
97+
Raises :exc:`SystemError` and returns ``-1`` on failure.

0 commit comments

Comments
 (0)