Files
openide/python/testData/highlighting/asyncSetComprehensionInNonAsyncFunction.after.py
Alex Grönholmandintellij-monorepo-bot bbd3eed580 PY-79522: Highlight syntax errors for misplaced "async with", "async for" and async list/set/dict comprehensions
# Conflicts:
#	community/python/python-psi-impl/src/com/jetbrains/python/validation/PyAsyncAwaitAnnotator.java

GitOrigin-RevId: 125a714f769ac93c8516250ae5b92afff14518f0
2025-03-12 18:13:55 +00:00

11 lines
167 B
Python

import asyncio
async def genfunc():
yield 1
async def example():
{x async for x in genfunc()}
async def example_correct():
{x async for x in genfunc()}