mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-11-19 07:25:11 +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:
|
with ThreadPoolExecutor(max_workers=min(workers, len(tracks))) as executor:
|
||||||
return dict(zip(map(id, tracks), executor.map(probe, tracks)))
|
return dict(zip(map(id, tracks), executor.map(probe, tracks)))
|
||||||
|
|
||||||
plans = []
|
plans: list[tuple[list["Video"], list["Video"], list["Video"]]] = []
|
||||||
for candidates in ladders:
|
for candidates in ladders:
|
||||||
if len(candidates) <= 4 or len({(v.width, v.height) for v in candidates}) < len(candidates):
|
if len(candidates) <= 4 or len({(v.width, v.height) for v in candidates}) < len(candidates):
|
||||||
plans.append((candidates, candidates, []))
|
plans.append((candidates, candidates, []))
|
||||||
|
|||||||
Reference in New Issue
Block a user