Skip to content

Commit ce93371

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

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
@@ -725,7 +725,8 @@ which are used to control the execution of a generator function.
725725
because there is no yield expression that could receive the value.
726726

727727

728-
.. coroutinemethod:: agen.athrow(type[, value[, traceback]])
728+
.. coroutinemethod:: agen.athrow(value)
729+
agen.athrow(type[, value[, traceback]])
729730

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

0 commit comments

Comments
 (0)