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