diff --git a/README.md b/README.md index dcb165bb57..e143bc6f18 100644 --- a/README.md +++ b/README.md @@ -502,7 +502,7 @@ For more, see [flake8-bugbear](https://pypi.org/project/flake8-bugbear/22.10.27/ | B007 | UnusedLoopControlVariable | Loop control variable `i` not used within the loop body. | 🛠 | | B008 | FunctionCallArgumentDefault | Do not perform function calls in argument defaults. | | | B009 | GetAttrWithConstant | Do not call `getattr` with a constant attribute value, it is not any safer than normal property access. | 🛠 | -| B010 | SetAttrWithConstant | Do not call setattr with a constant attribute value, it is not any safer than normal property access. | | +| B010 | SetAttrWithConstant | Do not call `setattr` with a constant attribute value, it is not any safer than normal property access. | | | B011 | DoNotAssertFalse | Do not `assert False` (`python -O` removes these calls), raise `AssertionError()` | 🛠 | | B013 | RedundantTupleInExceptionHandler | A length-one tuple literal is redundant. Write `except ValueError:` instead of `except (ValueError,):`. | | | B014 | DuplicateHandlerException | Exception handler with duplicate exception: `ValueError` | 🛠 | diff --git a/src/checks.rs b/src/checks.rs index 5be7e259ce..711c47cd89 100644 --- a/src/checks.rs +++ b/src/checks.rs @@ -1292,7 +1292,7 @@ impl CheckKind { value, it is not any safer than normal property \ access." .to_string(), - CheckKind::SetAttrWithConstant => "Do not call setattr with a constant attribute \ + CheckKind::SetAttrWithConstant => "Do not call `setattr` with a constant attribute \ value, it is not any safer than normal property \ access." .to_string(),