mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-12 13:07:01 +07:00
# Conflicts: # community/python/python-psi-impl/src/com/jetbrains/python/validation/PyAsyncAwaitAnnotator.java GitOrigin-RevId: 125a714f769ac93c8516250ae5b92afff14518f0
11 lines
226 B
Python
11 lines
226 B
Python
import asyncio
|
|
|
|
async def genfunc():
|
|
yield 1
|
|
|
|
def example():
|
|
{x <error descr="'async for' outside async function">async<caret></error> for x in genfunc()}
|
|
|
|
async def example_correct():
|
|
{x async for x in genfunc()}
|