Skip to content

Commit 85b2a08

Browse files
authored
[flake8-async] Make ASYNC110 example error out-of-the-box (#18975)
1 parent 1874d52 commit 85b2a08

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

crates/ruff_linter/src/rules/flake8_async/rules/async_busy_wait.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ use crate::rules::flake8_async::helpers::AsyncModule;
1616
///
1717
/// ## Example
1818
/// ```python
19+
/// import asyncio
20+
///
1921
/// DONE = False
2022
///
2123
///
@@ -26,6 +28,8 @@ use crate::rules::flake8_async::helpers::AsyncModule;
2628
///
2729
/// Use instead:
2830
/// ```python
31+
/// import asyncio
32+
///
2933
/// DONE = asyncio.Event()
3034
///
3135
///

0 commit comments

Comments
 (0)