Files
openide/python/testData/psi/AwaitInNonAsyncNestedFunction.py
Semyon Proshev 673bc32291 PY-19036 Fixed: Using await in a non-asynchronous nested function not marked as a syntax error
Don't inherit async flag in ParsingScope, pass async flag to function parsing
2016-04-18 14:07:04 +03:00

9 lines
131 B
Python

import asyncio
async def connect():
def callback():
return await asyncio.sleep(5)
return await asyncio.sleep(5)