From 50d37b6dfbf6ff81e6b40d1daa1d22aa35305170 Mon Sep 17 00:00:00 2001 From: PLR <51248199+plredmond@users.noreply.github.com> Date: Tue, 30 Apr 2024 16:36:57 -0700 Subject: [PATCH] [ruff F401 #10390 #10391] rename to_explicit -> to_reexport --- crates/ruff_linter/src/rules/pyflakes/rules/unused_import.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/ruff_linter/src/rules/pyflakes/rules/unused_import.rs b/crates/ruff_linter/src/rules/pyflakes/rules/unused_import.rs index 9b9f4f2e19150..790e4e731a627 100644 --- a/crates/ruff_linter/src/rules/pyflakes/rules/unused_import.rs +++ b/crates/ruff_linter/src/rules/pyflakes/rules/unused_import.rs @@ -244,7 +244,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_init || fix_init) && !in_except_handler { + let (fix_remove, fix_reexport) = if (!in_init || fix_init) && !in_except_handler { ( fix_by_removing_imports(checker, import_statement, &to_remove, in_init).ok(), fix_by_reexporting(checker, import_statement, &to_explicit, dunder_all).ok(), @@ -255,7 +255,7 @@ pub(crate) fn unused_import(checker: &Checker, scope: &Scope, diagnostics: &mut for ((binding, context), fix) in iter::Iterator::chain( iter::zip(to_remove, iter::repeat(fix_remove)), - iter::zip(to_explicit, iter::repeat(fix_explicit)), + iter::zip(to_reexport, iter::repeat(fix_reexport)), ) { let mut diagnostic = Diagnostic::new( UnusedImport {