Files
openide/python/testData/highlighting/yieldInsideAsyncDefPy35.py
T
Semyon Proshev 0e61667352 PY-20770 Fixed: Support Python 3.6 asynchronous generators and comprehensions
Update highlighting and compatibility visitor to correctly process async generators described in PEP 525
2016-09-30 17:59:50 +03:00

6 lines
245 B
Python

async def foo(x):
await x
<error descr="Python version 3.5 does not support 'yield' inside async functions">yield x</error>
<error descr="Python does not support 'yield from' inside async functions">yield from x</error>
return x