Python nested function fix - inner functions do not strip their first parameter (#151)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user