---
source: crates/ruff_linter/src/rules/pylint/mod.rs
---
PLE1142 `await` should be used within an async function
 --> await_outside_async.ipynb:9:5
  |
8 | def foo():
9 |     await asyncio.sleep(1)  # # [await-outside-async]
  |     ^^^^^^^^^^^^^^^^^^^^^^
  |
