Skip to content

Commit

Permalink
Fix typo in docs of PLR6301 (#7831)
Browse files Browse the repository at this point in the history
## 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.
  • Loading branch information
timobrembeck authored Oct 5, 2023
1 parent b64f403 commit 1dd5deb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/ruff_linter/src/rules/pylint/rules/no_self_use.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 1dd5deb

Please sign in to comment.