From 6de0add4805165317ab7d3d36b5cef48b1b865f3 Mon Sep 17 00:00:00 2001 From: Andres Mendez <71671687+amenrio@users.noreply.github.com> Date: Mon, 13 May 2024 14:49:42 +0200 Subject: [PATCH] fix: functions with only bare returns now evaluate properly (#171) --- lua/neogen/configurations/python.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/neogen/configurations/python.lua b/lua/neogen/configurations/python.lua index e10fe2e..1410fe9 100644 --- a/lua/neogen/configurations/python.lua +++ b/lua/neogen/configurations/python.lua @@ -247,8 +247,8 @@ return { end if nodes[i.Return] then - validate_bare_returns(nodes) validate_direct_returns(nodes, node) + validate_bare_returns(nodes) end validate_yield_nodes(nodes)