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/provider/python.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'runtime/lua/vim/provider/python.lua') diff --git a/runtime/lua/vim/provider/python.lua b/runtime/lua/vim/provider/python.lua index 6ea6fe4b8d..cfd3946d8a 100644 --- a/runtime/lua/vim/provider/python.lua +++ b/runtime/lua/vim/provider/python.lua @@ -1,7 +1,7 @@ local M = {} local min_version = '3.9' local s_err ---@type string? -local s_host ---@type string? +local s_host ---@type integer? local python_candidates = { 'python3', @@ -143,6 +143,7 @@ function M.call(method, args) vim.api.nvim_echo({ { result, 'WarningMsg' } }, true) return end + --- @cast result integer s_host = result end -- cgit