From: Federico Caselli Date: Wed, 7 Jun 2023 22:30:33 +0000 (+0200) Subject: [3.11] Add single value `agen.athrow(value)` signature to the 3.11 docs gh-105269... X-Git-Tag: v3.11.5~313 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=acf3916e84158308660ed07c474a564e045d6884;p=thirdparty%2FPython%2Fcpython.git [3.11] Add single value `agen.athrow(value)` signature to the 3.11 docs gh-105269 (#105468) --- diff --git a/Doc/reference/expressions.rst b/Doc/reference/expressions.rst index f669d9718a49..ce9ff7f2208a 100644 --- a/Doc/reference/expressions.rst +++ b/Doc/reference/expressions.rst @@ -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