From 97b07885ad148ea6c68e6331a5901797aed4094e Mon Sep 17 00:00:00 2001 From: Noah <33094578+coolreader18@users.noreply.github.com> Date: Sun, 5 Apr 2020 14:57:28 -0500 Subject: [PATCH] Uncomment AsyncGeneratorType in types.py --- Lib/types.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Lib/types.py b/Lib/types.py index fdb71f9c1..4567549a9 100644 --- a/Lib/types.py +++ b/Lib/types.py @@ -24,11 +24,10 @@ _c = _c() CoroutineType = type(_c) _c.close() # Prevent ResourceWarning -# XXX RUSTPYTHON TODO: async generators -# async def _ag(): -# yield -# _ag = _ag() -# AsyncGeneratorType = type(_ag) +async def _ag(): + yield +_ag = _ag() +AsyncGeneratorType = type(_ag) class _C: def _m(self): pass