diff --git a/crates/ruff_linter/src/rules/flake8_async/rules/blocking_sleep.rs b/crates/ruff_linter/src/rules/flake8_async/rules/blocking_sleep.rs index 10db6b92d2..a3ef530bc0 100644 --- a/crates/ruff_linter/src/rules/flake8_async/rules/blocking_sleep.rs +++ b/crates/ruff_linter/src/rules/flake8_async/rules/blocking_sleep.rs @@ -19,12 +19,18 @@ use crate::checkers::ast::Checker; /// /// ## Example /// ```python +/// import time +/// +/// /// async def fetch(): /// time.sleep(1) /// ``` /// /// Use instead: /// ```python +/// import asyncio +/// +/// /// async def fetch(): /// await asyncio.sleep(1) /// ```