diff --git a/Doc/reference/expressions.rst b/Doc/reference/expressions.rst index 0ac45995aef9c4..d5b34379e2b59f 100644 --- a/Doc/reference/expressions.rst +++ b/Doc/reference/expressions.rst @@ -710,7 +710,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