From aba340a1773359007cba01a053cf73693348dc70 Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Sat, 22 Jul 2023 14:10:38 +0100 Subject: [PATCH] Fix typo in PYI056 docs (#5973) The current "use instead" code would correctly be rejected by any type checker worth its salt ;) --- .../rules/flake8_pyi/rules/unsupported_method_call_on_all.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ruff/src/rules/flake8_pyi/rules/unsupported_method_call_on_all.rs b/crates/ruff/src/rules/flake8_pyi/rules/unsupported_method_call_on_all.rs index f7d24371a2299..f4ee1cf30c97c 100644 --- a/crates/ruff/src/rules/flake8_pyi/rules/unsupported_method_call_on_all.rs +++ b/crates/ruff/src/rules/flake8_pyi/rules/unsupported_method_call_on_all.rs @@ -23,7 +23,7 @@ use crate::checkers::ast::Checker; /// Use instead: /// ```python /// __all__ = ["A"] -/// __all__ += "B" +/// __all__ += ["B"] /// ``` #[violation] pub struct UnsupportedMethodCallOnAll {