mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-23 18:17:53 -06:00
chore: lint and type the remaining tools
This commit is contained in:
1 parent
54521380dc
commit
fe243ce8a8
11 files changed
+27
-31
No files matched your search
@@ -91,8 +91,7 @@ def plan_variants(entries: Iterable[dict], region: str,
|
||||
local: Callable[[dict], Path | None]) -> dict[str, dict[str, Path]]:
|
||||
"""The staged files of `full`, `own` and `others`, dest -> file. An entry
|
||||
the collection does not hold is left out of every variant."""
|
||||
held = [(entry, local(entry)) for entry in entries]
|
||||
held = [(entry, path) for entry, path in held if path]
|
||||
held = [(entry, path) for entry in entries if (path := local(entry))]
|
||||
full = {entry_dest(e): p for e, p in held}
|
||||
own = {entry_dest(e): p for e, p in held if region in regions_of(e)}
|
||||
others = {entry_dest(e): p for e, p in held if region not in regions_of(e)}
|
||||
|
||||
Reference in new issue
Block a user