chore: type the standalone layout check

This commit is contained in:
Abdessamad Derraz committed 2026-11-12 05:01:09 +01:00
1 parent 07dd93604d
commit 62abea3ed4
1 file changed
+3 -1
+3 -1
View File
@@ -754,11 +754,13 @@ def _semantic_install_checks(path: Path, manifest: dict) -> list[str]:
return out
def _semantic_standalone_checks(path: Path, layouts: dict) -> list[str]:
def _semantic_standalone_checks(path: Path, layouts: object) -> list[str]:
"""A standalone layout file goes with its platform's list: the list
names the same builds, and each [dest, sha1] item takes its download
from a copy of that list."""
where = path.relative_to(ROOT)
if not isinstance(layouts, dict):
return [f"{where}: not an object"]
plat = layouts.get("platform")
if path.stem != plat:
return [f"{where}: platform {plat} in a file named {path.stem}"]