mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-26 20:10:09 +00:00
Fix missing backtick
This commit is contained in:
parent
90d88dfb10
commit
209dce2033
2 changed files with 2 additions and 2 deletions
|
@ -281,7 +281,7 @@ The 🛠 emoji indicates that a rule is automatically fixable by the `--fix` com
|
||||||
| A002 | BuiltinArgumentShadowing | Argument `...` is shadowing a python builtin | | |
|
| A002 | BuiltinArgumentShadowing | Argument `...` is shadowing a python builtin | | |
|
||||||
| A003 | BuiltinAttributeShadowing | Class attribute `...` is shadowing a python builtin | | |
|
| A003 | BuiltinAttributeShadowing | Class attribute `...` is shadowing a python builtin | | |
|
||||||
| B011 | DoNotAssertFalse | Do not `assert False` (`python -O` removes these calls), raise `AssertionError()` | | 🛠 |
|
| B011 | DoNotAssertFalse | Do not `assert False` (`python -O` removes these calls), raise `AssertionError()` | | 🛠 |
|
||||||
| B014 | DuplicateHandlerException | Exception handler with duplicate exception: `ValueError | | 🛠 |
|
| B014 | DuplicateHandlerException | Exception handler with duplicate exception: `ValueError` | | 🛠 |
|
||||||
| B025 | DuplicateTryBlockException | try-except block with duplicate exception `Exception` | | |
|
| B025 | DuplicateTryBlockException | try-except block with duplicate exception `Exception` | | |
|
||||||
| C400 | UnnecessaryGeneratorList | Unnecessary generator - rewrite as a list comprehension | | |
|
| C400 | UnnecessaryGeneratorList | Unnecessary generator - rewrite as a list comprehension | | |
|
||||||
| C401 | UnnecessaryGeneratorSet | Unnecessary generator - rewrite as a set comprehension | | |
|
| C401 | UnnecessaryGeneratorSet | Unnecessary generator - rewrite as a set comprehension | | |
|
||||||
|
|
|
@ -625,7 +625,7 @@ impl CheckKind {
|
||||||
CheckKind::DuplicateHandlerException(names) => {
|
CheckKind::DuplicateHandlerException(names) => {
|
||||||
if names.len() == 1 {
|
if names.len() == 1 {
|
||||||
let name = &names[0];
|
let name = &names[0];
|
||||||
format!("Exception handler with duplicate exception: `{name}")
|
format!("Exception handler with duplicate exception: `{name}`")
|
||||||
} else {
|
} else {
|
||||||
let names = names.iter().map(|name| format!("`{name}`")).join(", ");
|
let names = names.iter().map(|name| format!("`{name}`")).join(", ");
|
||||||
format!("Exception handler with duplicate exceptions: {names}")
|
format!("Exception handler with duplicate exceptions: {names}")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue