From b275f278ca00f3d9b883d487429f32afe03a28af Mon Sep 17 00:00:00 2001 From: Abdessamad Derraz <3028866+Abdess@users.noreply.github.com> Date: Wed, 21 Oct 2026 05:17:16 +0200 Subject: [PATCH] fix: type the model notes filter --- scripts/check_freshness.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/check_freshness.py b/scripts/check_freshness.py index 7dba5c5c..9b04fdb2 100644 --- a/scripts/check_freshness.py +++ b/scripts/check_freshness.py @@ -40,6 +40,7 @@ import shutil import subprocess import sys import tempfile +from collections.abc import Iterator from concurrent.futures import ThreadPoolExecutor from dataclasses import asdict, dataclass, field from datetime import datetime, timezone @@ -478,7 +479,7 @@ _MODEL_NOTES = ("WARNING: hash conflict",) @contextlib.contextmanager -def _without_model_notes(): +def _without_model_notes() -> Iterator[None]: """Keep the model build's own notes out of the freshness report. Anything else written to stderr passes through.