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.
This commit is contained in:
Abdessamad Derraz committed 2026-11-06 15:06:15 +01:00
1 parent f2132cc2c0
commit 3eade14d4f
1 file changed
+2 -2
+2 -2
View File
@@ -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)} "