Skip to content

Commit db42de4

Browse files
[3.8] [3.11] Add single value agen.athrow(value) signature to the 3.11 docs gh-105269 (GH-105468) (#105478)
(cherry picked from commit acf3916) Co-authored-by: Federico Caselli <CaselIT@users.noreply.github.com>
1 parent 40ea37d commit db42de4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Doc/reference/expressions.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,8 @@ which are used to control the execution of a generator function.
710710
because there is no yield expression that could receive the value.
711711

712712

713-
.. coroutinemethod:: agen.athrow(type[, value[, traceback]])
713+
.. coroutinemethod:: agen.athrow(value)
714+
agen.athrow(type[, value[, traceback]])
714715

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

0 commit comments

Comments
 (0)