Skip to content

Commit 1851443

Browse files
[3.10] [3.11] Add single value agen.athrow(value) signature to the 3.11 docs gh-105269 (GH-105468) (#105480)
(cherry picked from commit acf3916) Co-authored-by: Federico Caselli <[email protected]>
1 parent 45de31d commit 1851443

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Doc/reference/expressions.rst

+2-1
Original file line numberDiff line numberDiff line change
@@ -735,7 +735,8 @@ which are used to control the execution of a generator function.
735735
because there is no yield expression that could receive the value.
736736

737737

738-
.. coroutinemethod:: agen.athrow(type[, value[, traceback]])
738+
.. coroutinemethod:: agen.athrow(value)
739+
agen.athrow(type[, value[, traceback]])
739740

740741
Returns an awaitable that raises an exception of type ``type`` at the point
741742
where the asynchronous generator was paused, and returns the next value

0 commit comments

Comments
 (0)