From ec4987fa5dcefafa4b9319d485158a17a8f1eda3 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 10 Nov 2016 11:57:31 -0800 Subject: [PATCH] Fix AwaitableGenerator inheritance; Awaitable is the return value, not the yielded value (#679) --- stdlib/3/typing.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/3/typing.pyi b/stdlib/3/typing.pyi index 4d05394f3..96b09bea3 100644 --- a/stdlib/3/typing.pyi +++ b/stdlib/3/typing.pyi @@ -135,7 +135,7 @@ class Coroutine(Awaitable[_V_co], Generic[_T_co, _T_contra, _V_co]): # NOTE: This type does not exist in typing.py or PEP 484. # The parameters corrrespond to Generator, but the 4th is the original type. -class AwaitableGenerator(Generator[_T_co, _T_contra, _V_co], Awaitable[_T_co], +class AwaitableGenerator(Generator[_T_co, _T_contra, _V_co], Awaitable[_V_co], Generic[_T_co, _T_contra, _V_co, _S]): pass