diff --git a/crates/ruff_linter/src/rules/flake8_bugbear/rules/batched_without_explicit_strict.rs b/crates/ruff_linter/src/rules/flake8_bugbear/rules/batched_without_explicit_strict.rs index 8cc71d438c..e7c467ca84 100644 --- a/crates/ruff_linter/src/rules/flake8_bugbear/rules/batched_without_explicit_strict.rs +++ b/crates/ruff_linter/src/rules/flake8_bugbear/rules/batched_without_explicit_strict.rs @@ -20,16 +20,22 @@ use crate::{FixAvailability, Violation}; /// /// ## Example /// ```python +/// import itertools +/// /// itertools.batched(iterable, n) /// ``` /// /// Use instead if the batches must be of uniform length: /// ```python +/// import itertools +/// /// itertools.batched(iterable, n, strict=True) /// ``` /// /// Or if the batches can be of non-uniform length: /// ```python +/// import itertools +/// /// itertools.batched(iterable, n, strict=False) /// ``` ///