Skip to content

Commit

Permalink
[ruff F401 #10390 #10391] flip incorrectly reversed preview-flag-check
Browse files Browse the repository at this point in the history
  • Loading branch information
plredmond committed Apr 30, 2024
1 parent 667a901 commit c6a3ef4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ pub(crate) fn unused_import(checker: &Checker, scope: &Scope, diagnostics: &mut

// generate fixes that are shared across bindings in the statement
let (fix_remove, fix_explicit) =
if !in_except_handler && !checker.settings.preview.is_enabled() {
if !in_except_handler && checker.settings.preview.is_enabled() {
(
fix_by_removing_imports(checker, import_statement, &to_remove, in_init).ok(),
fix_by_reexporting(checker, import_statement, &to_explicit, dunder_all).ok(),
Expand Down

0 comments on commit c6a3ef4

Please sign in to comment.