mirror of https://github.com/astral-sh/ruff
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.
This commit is contained in:
parent
b64f403dc2
commit
1dd5deb53d
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue