# This sample validates that "async" is flagged as an error when# used in inappropriate locations.fromcontextlibimportAsyncExitStackasyncdefb():foriinrange(5):yieldicm=AsyncExitStack()deffunc1():# This should generate an error because# "async" cannot be used in a non-async function.asyncforxinb():print("")