Skip to content

Commit

Permalink
[3.11] Add single value agen.athrow(value) signature to the 3.11 docs
Browse files Browse the repository at this point in the history
pythongh-105269  (pythonGH-105468)

(cherry picked from commit acf3916)

Co-authored-by: Federico Caselli <[email protected]>
  • Loading branch information
CaselIT authored and miss-islington committed Jun 7, 2023
1 parent a23ff66 commit 57d62fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Doc/reference/expressions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,8 @@ which are used to control the execution of a generator function.
because there is no yield expression that could receive the value.


.. coroutinemethod:: agen.athrow(type[, value[, traceback]])
.. coroutinemethod:: agen.athrow(value)
agen.athrow(type[, value[, traceback]])

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

0 comments on commit 57d62fc

Please sign in to comment.