10000 [3.11] Add single value `agen.athrow(value)` signature to the 3.11 do… · python/cpython@acf3916 · GitHub
[go: up one dir, main page]

Skip to content

Commit acf3916

Browse files
authored
[3.11] Add single value agen.athrow(value) signature to the 3.11 docs gh-105269 (#105468)
1 parent 3a195f3 commit acf3916

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

742742

743-
.. coroutinemethod:: agen.athrow(type[, value[, traceback]])
743+
.. coroutinemethod:: agen.athrow(value)
744+
agen.athrow(type[, value[, traceback]])
744745

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

0 commit comments

Comments
 (0)
0