---
source: crates/ruff_linter/src/rules/pylint/mod.rs
---
await_outside_async.py:12:11: PLE1142 `await` should be used within an async function
   |
11 | def not_async():
12 |     print(await nested())  # [await-outside-async]
   |           ^^^^^^^^^^^^^^ PLE1142
   |

await_outside_async.py:25:9: PLE1142 `await` should be used within an async function
   |
23 | async def func2():
24 |     def inner_func():
25 |         await asyncio.sleep(1)  # [await-outside-async]
   |         ^^^^^^^^^^^^^^^^^^^^^^ PLE1142
   |


