mirror of https://github.com/astral-sh/ruff
Fix clippy errors
This commit is contained in:
parent
edf46c06d0
commit
98856e05d6
|
|
@ -2720,15 +2720,17 @@ where
|
||||||
if self.settings.enabled.contains(&CheckCode::SIM210) {
|
if self.settings.enabled.contains(&CheckCode::SIM210) {
|
||||||
flake8_simplify::plugins::explicit_true_false_in_ifexpr(
|
flake8_simplify::plugins::explicit_true_false_in_ifexpr(
|
||||||
self, expr, test, body, orelse,
|
self, expr, test, body, orelse,
|
||||||
)
|
);
|
||||||
}
|
}
|
||||||
if self.settings.enabled.contains(&CheckCode::SIM211) {
|
if self.settings.enabled.contains(&CheckCode::SIM211) {
|
||||||
flake8_simplify::plugins::explicit_false_true_in_ifexpr(
|
flake8_simplify::plugins::explicit_false_true_in_ifexpr(
|
||||||
self, expr, test, body, orelse,
|
self, expr, test, body, orelse,
|
||||||
)
|
);
|
||||||
}
|
}
|
||||||
if self.settings.enabled.contains(&CheckCode::SIM212) {
|
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 } => {
|
ExprKind::ListComp { elt, generators } | ExprKind::SetComp { elt, generators } => {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue