From 8441db69ae63fb0091767dd8f760de929a1fe97b Mon Sep 17 00:00:00 2001 From: Zanie Date: Fri, 27 Oct 2023 12:22:25 -0500 Subject: [PATCH] Fix `total_changes_by_rule` type annotation --- python/ruff-ecosystem/ruff_ecosystem/check.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/ruff-ecosystem/ruff_ecosystem/check.py b/python/ruff-ecosystem/ruff_ecosystem/check.py index ce760d44ba..7747edbdff 100644 --- a/python/ruff-ecosystem/ruff_ecosystem/check.py +++ b/python/ruff-ecosystem/ruff_ecosystem/check.py @@ -281,7 +281,7 @@ class RuleChanges: def total_removed_fixes(self) -> int: return sum(self.removed_fixes.values()) - def total_changes_by_rule(self) -> Iterator[str, int]: + def total_changes_by_rule(self) -> Iterator[tuple[str, int]]: """ Yields the sum of changes for each rule """