From c6535538f8717a8f6134020a5bee65341cf8280f Mon Sep 17 00:00:00 2001 From: Lewis Russell Date: Mon, 28 Sep 2026 14:19:42 +0100 Subject: fix(lua): enable param-type-mismatch diagnostic Problem: Argument type mismatches are excluded from EmmyLua checks. Solution: Correct runtime annotations and calls, document local checker workarounds, and enable the diagnostic. AI-assisted --- runtime/lua/vim/net.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'runtime/lua/vim/net.lua') diff --git a/runtime/lua/vim/net.lua b/runtime/lua/vim/net.lua index 3cb193e81c..1a72764406 100644 --- a/runtime/lua/vim/net.lua +++ b/runtime/lua/vim/net.lua @@ -151,6 +151,7 @@ function M.request(method, url, opts, on_response) local system_opts = opts.body and { stdin = opts.body } or {} local job = vim.system(args, system_opts, function(res) + --- @cast res.stdout -? ---@type string?, vim.net.request.Response? local err, response = nil, nil if res.signal ~= 0 then -- cgit