ws-cleanup-types: archive, audio, data, font, image, layered, music, playlist, subtitle, vector, video: annotations, casts, one value per re-assignment where the solver loses the type

This commit is contained in:
4DBug committed 2026-10-31 11:00:25 -05:00
1 parent dc98aec2ec
commit f459b2dcdf
44 files changed
+172 -119

No files matched your search

+2 -2
View File
@@ -105,7 +105,7 @@ function Y4m.demux(r: Bytes.Reader, opts: OpenOptions?): (any, Err.Err?)
h = tonumber(v) or 0
elseif k == "F" then
local a, b = string.match(v, "^(%d+):(%d+)$")
if a and b and tonumber(a) > 0 and tonumber(b) > 0 then
if a and b and (tonumber(a) :: number) > 0 and (tonumber(b) :: number) > 0 then
fn, fd = tonumber(a) :: number, tonumber(b) :: number
end
elseif k == "C" then
@@ -203,7 +203,7 @@ function Y4m.open(r: Bytes.Reader, opts: OpenOptions?): (Types.VideoDecoder?, Er
if not dmx then
return nil, err
end
return Video.open(dmx, opts)
return Video.open(dmx, opts :: Video.OpenOptions?)
end
return Y4m