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
  • Loading branch information
CaselIT authored Jun 7, 2023
1 parent 3a195f3 commit acf3916
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 @@ -740,7 +740,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 acf3916

Please sign in to comment.