mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-31 07:38:00 +00:00
Fix clippy errors
This commit is contained in:
parent
edf46c06d0
commit
98856e05d6
1 changed files with 5 additions and 3 deletions
|
@ -2720,15 +2720,17 @@ where
|
|||
if self.settings.enabled.contains(&CheckCode::SIM210) {
|
||||
flake8_simplify::plugins::explicit_true_false_in_ifexpr(
|
||||
self, expr, test, body, orelse,
|
||||
)
|
||||
);
|
||||
}
|
||||
if self.settings.enabled.contains(&CheckCode::SIM211) {
|
||||
flake8_simplify::plugins::explicit_false_true_in_ifexpr(
|
||||
self, expr, test, body, orelse,
|
||||
)
|
||||
);
|
||||
}
|
||||
if self.settings.enabled.contains(&CheckCode::SIM212) {
|
||||
flake8_simplify::plugins::twisted_arms_in_ifexpr(self, expr, test, body, orelse)
|
||||
flake8_simplify::plugins::twisted_arms_in_ifexpr(
|
||||
self, expr, test, body, orelse,
|
||||
);
|
||||
}
|
||||
}
|
||||
ExprKind::ListComp { elt, generators } | ExprKind::SetComp { elt, generators } => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue