mirror of https://github.com/astral-sh/ruff
[`flake8-async`] Make `ASYNC110` example error out-of-the-box (#18975)
This commit is contained in:
parent
1874d52eda
commit
85b2a08b5c
|
|
@ -16,6 +16,8 @@ use crate::rules::flake8_async::helpers::AsyncModule;
|
||||||
///
|
///
|
||||||
/// ## Example
|
/// ## Example
|
||||||
/// ```python
|
/// ```python
|
||||||
|
/// import asyncio
|
||||||
|
///
|
||||||
/// DONE = False
|
/// DONE = False
|
||||||
///
|
///
|
||||||
///
|
///
|
||||||
|
|
@ -26,6 +28,8 @@ use crate::rules::flake8_async::helpers::AsyncModule;
|
||||||
///
|
///
|
||||||
/// Use instead:
|
/// Use instead:
|
||||||
/// ```python
|
/// ```python
|
||||||
|
/// import asyncio
|
||||||
|
///
|
||||||
/// DONE = asyncio.Event()
|
/// DONE = asyncio.Event()
|
||||||
///
|
///
|
||||||
///
|
///
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue