8000 [3.9] [3.11] Add single value `agen.athrow(value)` signature to the 3… · DataDog/cpython@76ad60f · GitHub
[go: up one dir, main page]

Skip to content

Commit 76ad60f

Browse files
miss-islingtonCaselIT
authored andcommitted
[3.9] [3.11] Add single value agen.athrow(value) signature to the 3.11 docs pythongh-105269 (pythonGH-105468) (python#105477)
(cherry picked from commit acf3916) Co-authored-by: Federico Caselli <CaselIT@users.noreply.github.com>
1 parent b2467f4 commit 76ad60f

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)
0