From 1dd5deb53d468f7ee059a697c153cc08ac2499ec Mon Sep 17 00:00:00 2001 From: Timo Brembeck Date: Thu, 5 Oct 2023 23:16:43 +0200 Subject: [PATCH] Fix typo in docs of PLR6301 (#7831) ## Summary The example code for [PLR6301 (no-self-use)](https://docs.astral.sh/ruff/rules/no-self-use/#example) contains f-strings without placeholder expressions, which is discouraged according to [F541 (f-string-missing-placeholders)](https://docs.astral.sh/ruff/rules/f-string-missing-placeholders/). For such a trivial change, I didn't open a separate issue. --- crates/ruff_linter/src/rules/pylint/rules/no_self_use.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ruff_linter/src/rules/pylint/rules/no_self_use.rs b/crates/ruff_linter/src/rules/pylint/rules/no_self_use.rs index 10734618ef2dd..1b55f3a8349d4 100644 --- a/crates/ruff_linter/src/rules/pylint/rules/no_self_use.rs +++ b/crates/ruff_linter/src/rules/pylint/rules/no_self_use.rs @@ -29,7 +29,7 @@ use crate::{checkers::ast::Checker, rules::flake8_unused_arguments::helpers}; /// class Person: /// @staticmethod /// def greeting(): -/// print(f"Greetings friend!") +/// print("Greetings friend!") /// ``` #[violation] pub struct NoSelfUse {