Python nested function fix - inner functions do not strip their first parameter (#151)

This commit is contained in:
Colin Kennedy
2023-06-08 17:34:48 -07:00
committed by GitHub
parent d8c8145304
commit cb1f384df8
2 changed files with 4 additions and 1 deletions

View File

@@ -204,7 +204,10 @@ return {
if decorator == "@staticmethod" then
remove_identifier = false
end
elseif node:parent():parent():type() == "function_definition" then
remove_identifier = false
end
if remove_identifier then
table.remove(res[i.Parameter], 1)
if vim.tbl_isempty(res[i.Parameter]) then

View File

@@ -299,7 +299,7 @@ end
--- with multiple annotation conventions.
---@tag neogen-changelog
---@toc_entry Changes in neogen plugin
neogen.version = "2.15.1"
neogen.version = "2.15.2"
--minidoc_afterlines_end
return neogen