From 01e974fa7fcee43f16060c0d3b7f35172165d984 Mon Sep 17 00:00:00 2001 From: PLR <51248199+plredmond@users.noreply.github.com> Date: Tue, 14 May 2024 11:28:13 -0700 Subject: [PATCH] Revert "collect only 2 `__all__` definitions and then stop pulling the iterator" This reverts commit 548180b3ffb0bfcada85976777494a9c00269d57. --- crates/ruff_linter/src/rules/pyflakes/rules/unused_import.rs | 1 - 1 file changed, 1 deletion(-) 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 9938d43b73360..6fe44cf88a578 100644 --- a/crates/ruff_linter/src/rules/pyflakes/rules/unused_import.rs +++ b/crates/ruff_linter/src/rules/pyflakes/rules/unused_import.rs @@ -180,7 +180,6 @@ fn find_dunder_all_exprs<'a>(semantic: &'a SemanticModel) -> Vec<&'a ast::Expr> _ => None, } }) - .take(2) .collect() }