diff --git a/python/ruff-ecosystem/ruff_ecosystem/check.py b/python/ruff-ecosystem/ruff_ecosystem/check.py index 7747edbdff..b783ca5d0a 100644 --- a/python/ruff-ecosystem/ruff_ecosystem/check.py +++ b/python/ruff-ecosystem/ruff_ecosystem/check.py @@ -373,7 +373,7 @@ class DiagnosticLine: match_items = match.groupdict() - return DiagnosticLine( + return cls( location=match_items["location"], is_removed=match_items.get("diff") == "-", is_added=match_items.get("diff") == "+",