Skip to content

Commit 97b0788

Browse files
committed
Uncomment AsyncGeneratorType in types.py
1 parent d4bda6c commit 97b0788

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Lib/types.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,10 @@ async def _c(): pass
2424
CoroutineType = type(_c)
2525
_c.close() # Prevent ResourceWarning
2626

27-
# XXX RUSTPYTHON TODO: async generators
28-
# async def _ag():
29-
# yield
30-
# _ag = _ag()
31-
# AsyncGeneratorType = type(_ag)
27+
async def _ag():
28+
yield
29+
_ag = _ag()
30+
AsyncGeneratorType = type(_ag)
3231

3332
class _C:
3433
def _m(self): pass

0 commit comments

Comments
 (0)