From 85b2a08b5cda2fb865d9575eec6f462d24e2a667 Mon Sep 17 00:00:00 2001 From: GiGaGon <107241144+MeGaGiGaGon@users.noreply.github.com> Date: Fri, 27 Jun 2025 00:01:02 -0700 Subject: [PATCH] [`flake8-async`] Make `ASYNC110` example error out-of-the-box (#18975) --- .../src/rules/flake8_async/rules/async_busy_wait.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/ruff_linter/src/rules/flake8_async/rules/async_busy_wait.rs b/crates/ruff_linter/src/rules/flake8_async/rules/async_busy_wait.rs index d54b0da448..9b4fab75c4 100644 --- a/crates/ruff_linter/src/rules/flake8_async/rules/async_busy_wait.rs +++ b/crates/ruff_linter/src/rules/flake8_async/rules/async_busy_wait.rs @@ -16,6 +16,8 @@ use crate::rules::flake8_async::helpers::AsyncModule; /// /// ## Example /// ```python +/// import asyncio +/// /// DONE = False /// /// @@ -26,6 +28,8 @@ use crate::rules::flake8_async::helpers::AsyncModule; /// /// Use instead: /// ```python +/// import asyncio +/// /// DONE = asyncio.Event() /// ///