From c0917c6537b5d84c317f4c6b2e0f5cf0d42eedbc Mon Sep 17 00:00:00 2001 From: imSp4rky Date: Sun, 18 Oct 2026 11:52:10 -0600 Subject: [PATCH] fix(tracks): annotate the hdr10+ probe plans list for strict mypy --- unshackle/core/utils/hdr10plus.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unshackle/core/utils/hdr10plus.py b/unshackle/core/utils/hdr10plus.py index 9d0447aa..d3badef3 100644 --- a/unshackle/core/utils/hdr10plus.py +++ b/unshackle/core/utils/hdr10plus.py @@ -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, []))