From ca57b2595e2aa1503a60c0ddcba50c5dfdb0adbe Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Sat, 17 Jan 2026 13:30:45 +0000 Subject: [PATCH] =?UTF-8?q?conformance.py:=20Only=20use=20the=20"No=20chan?= =?UTF-8?q?ges=20detected=20=E2=9C=85"=20summary=20if=20no=20diagnostics?= =?UTF-8?q?=20were=20added=20or=20removed=20(#22649)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/conformance.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/scripts/conformance.py b/scripts/conformance.py index 2b45a6da6e..00cbe69181 100644 --- a/scripts/conformance.py +++ b/scripts/conformance.py @@ -537,14 +537,7 @@ def render_summary(grouped_diagnostics: list[GroupedDiagnostics]): base_header = f"[Typing conformance results]({CONFORMANCE_DIR_WITH_README})" - if ( - precision_change == 0 - and recall_change == 0 - and true_pos_change == 0 - and false_pos_change == 0 - and false_neg_change == 0 - and total_change == 0 - ): + if all(diag.change is Change.UNCHANGED for diag in grouped_diagnostics): return dedent( f""" ## {base_header}