From e0eec76dad852814e5972aa66ec2dc98d03525a8 Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Fri, 5 Dec 2025 15:32:28 +0100 Subject: fix(lua): fix some emmyluals warnings --- scripts/install-parsers.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/install-parsers.lua') diff --git a/scripts/install-parsers.lua b/scripts/install-parsers.lua index 2d083f3c3..c97c6eecc 100755 --- a/scripts/install-parsers.lua +++ b/scripts/install-parsers.lua @@ -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 -- cgit v1.2.3-70-g09d2