conformance.py: Only use the "No changes detected " summary if no diagnostics were added or removed (#22649)

This commit is contained in:
Alex Waygood
2026-01-17 13:30:45 +00:00
committed by GitHub
parent dfd236c028
commit ca57b2595e

View File

@@ -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}