From 542ca0009923c7c8fe3c3987fb1eaf7b0c379137 Mon Sep 17 00:00:00 2001 From: Federico Caselli Date: Wed, 7 Jun 2023 20:35:07 +0200 Subject: [PATCH] Add single value athrow signature --- 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 f669d9718a4960..ce9ff7f2208a8b 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