mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-11-12 12:05:07 +00:00
fix(tracks): annotate the hdr10+ probe plans list for strict mypy
This commit is contained in:
@@ -184,7 +184,7 @@ def probe_hdr10plus(
|
||||
with ThreadPoolExecutor(max_workers=min(workers, len(tracks))) as executor:
|
||||
return dict(zip(map(id, tracks), executor.map(probe, tracks)))
|
||||
|
||||
plans = []
|
||||
plans: list[tuple[list["Video"], list["Video"], list["Video"]]] = []
|
||||
for candidates in ladders:
|
||||
if len(candidates) <= 4 or len({(v.width, v.height) for v in candidates}) < len(candidates):
|
||||
plans.append((candidates, candidates, []))
|
||||
|
||||
Reference in New Issue
Block a user