From fedd99eae5bb2ab14c87086d70b45078a3ada841 Mon Sep 17 00:00:00 2001 From: Federico Caselli Date: Thu, 8 Jun 2023 00:30:33 +0200 Subject: [PATCH] [3.11] Add single value `agen.athrow(value)` signature to the 3.11 docs gh-105269 (GH-105468) (cherry picked from commit acf3916e84158308660ed07c474a564e045d6884) Co-authored-by: Federico Caselli --- Doc/reference/expressions.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Doc/reference/expressions.rst b/Doc/reference/expressions.rst index 3c14fc98d00802..7672c86867c872 100644 --- a/Doc/reference/expressions.rst +++ b/Doc/reference/expressions.rst @@ -705,7 +705,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