]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.10] [3.11] Add single value `agen.athrow(value)` signature to the 3.11 docs gh...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 5 Jul 2023 11:18:39 +0000 (04:18 -0700)
committerGitHub <noreply@github.com>
Wed, 5 Jul 2023 11:18:39 +0000 (13:18 +0200)
(cherry picked from commit acf3916e84158308660ed07c474a564e045d6884)

Co-authored-by: Federico Caselli <CaselIT@users.noreply.github.com>
Doc/reference/expressions.rst

index 447fbc2a88f89564e07d361cbdd645bcc824c9ed..baa6695969be95da431f89411060a06d3cc017de 100644 (file)
@@ -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