fix(lua): fix some emmyluals warnings

This commit is contained in:
Christian Clason 2025-12-05 15:32:28 +01:00 committed by Christian Clason
parent 75797cdd8a
commit e0eec76dad
6 changed files with 37 additions and 13 deletions

View file

@ -2,7 +2,7 @@
local generate = false
local update = false
local max_jobs = nil ---@type integer?
local max_jobs = nil ---@type number?
local parsers = {}
for i = 1, #_G.arg do
if _G.arg[i] == '--generate' then
@ -10,7 +10,7 @@ for i = 1, #_G.arg do
elseif _G.arg[i] == '--update' then
update = true
elseif _G.arg[i]:find('^%-%-max%-jobs') then
max_jobs = _G.arg[i]:match('=(%d+)')
max_jobs = tonumber(_G.arg[i]:match('=(%d+)'))
else
parsers[#parsers + 1] = _G.arg[i] ---@type string
end