Skip to content

Commit b1a9920

Browse files
dylwil3ntBre
andcommitted
Stabilize unnecessary-dict-index-lookup (PLR1733) (#18571)
Co-authored-by: Brent Westbrook <brentrwestbrook@gmail.com>
1 parent e6dedcf commit b1a9920

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

crates/ruff_linter/src/codes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ pub fn code_to_rule(linter: Linter, code: &str) -> Option<(RuleGroup, Rule)> {
270270
(Pylint, "R1722") => (RuleGroup::Stable, rules::pylint::rules::SysExitAlias),
271271
(Pylint, "R1730") => (RuleGroup::Stable, rules::pylint::rules::IfStmtMinMax),
272272
(Pylint, "R1716") => (RuleGroup::Stable, rules::pylint::rules::BooleanChainedComparison),
273-
(Pylint, "R1733") => (RuleGroup::Preview, rules::pylint::rules::UnnecessaryDictIndexLookup),
273+
(Pylint, "R1733") => (RuleGroup::Stable, rules::pylint::rules::UnnecessaryDictIndexLookup),
274274
(Pylint, "R1736") => (RuleGroup::Stable, rules::pylint::rules::UnnecessaryListIndexLookup),
275275
(Pylint, "R2004") => (RuleGroup::Stable, rules::pylint::rules::MagicValueComparison),
276276
(Pylint, "R2044") => (RuleGroup::Stable, rules::pylint::rules::EmptyComment),

crates/ruff_linter/src/rules/ruff/rules/unused_async.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ use ruff_python_semantic::analyze::function_type::is_stub;
77

88
use crate::Violation;
99
use crate::checkers::ast::Checker;
10+
1011
use crate::rules::fastapi::rules::is_fastapi_route;
1112

1213
/// ## What it does

0 commit comments

Comments
 (0)