Files
openide/python/testData/inspections/PyCompatibilityInspection/asyncComprehensions.py
lada.gaginaandintellij-monorepo-bot 75b1ecd244 [python] Cleanup supported/unsupported versions xmls
- Drop support for python 3.5 & 3.6 in compatibility inspection
- Fix and remove some outdated tests
- Remove xmls for long-unsupported python 2.6 & 3.5
- Regenerate versions.xml
- Remove mentions of OS-specific modules

GitOrigin-RevId: 3265dd1de8a4f7a41119e10c95bb705ca5845efe
2023-11-17 18:57:31 +00:00

16 lines
635 B
Python

<warning descr="Python version 2.7 does not support this syntax">async</warning> def asyncgen():
yield 10
<warning descr="Python version 2.7 does not support this syntax">async</warning> def run():
{i async for i in asyncgen()}
[i async for i in asyncgen()]
{i: i ** 2 async for i in asyncgen()}
(i ** 2 async for i in asyncgen())
list(i async for i in asyncgen())
dataset = {data for line in gen()
async for data in line
if check(data)}
dataset = {data async for line in asyncgen()
async for data in line
if check(data)}