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:
Timo Brembeck 2023-10-05 23:16:43 +02:00 committed by GitHub
parent b64f403dc2
commit 1dd5deb53d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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 {