From 3eade14d4f7a87ebdb204ec716b76e9d3d66cb00 Mon Sep 17 00:00:00 2001 From: Abdessamad Derraz <3028866+Abdess@users.noreply.github.com> Date: Fri, 6 Nov 2026 15:06:15 +0100 Subject: [PATCH] refactor: keep the bundled names out of listed The bundled line reused the name of the str that holds the Core files hint for a list. mypy reports it against the baseline. --- scripts/verify.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/verify.py b/scripts/verify.py index 2f473c697..7ad25c5d0 100644 --- a/scripts/verify.py +++ b/scripts/verify.py @@ -1926,10 +1926,10 @@ def _print_undeclared_section(result: dict, verbose: bool) -> None: # The required firmware alone read as the whole count: 14 names # for 154 entries, nothing saying the rest existed. hidden = len({u["name"] for u in bundled}) - len(named) - listed = named + ([f"{hidden} more, --verbose lists them"] if hidden else []) + items = named + ([f"{hidden} more, --verbose lists them"] if hidden else []) print( f" Bundled with their emulator, not collected: {len(bundled)}" - + (f" ({', '.join(listed)})" if listed else "") + + (f" ({', '.join(items)})" if items else "") ) if unplaced: print(f" Core files held but not packed: {len(unplaced)} "