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
|
if decorator == "@staticmethod" then
|
||||||
remove_identifier = false
|
remove_identifier = false
|
||||||
end
|
end
|
||||||
|
elseif node:parent():parent():type() == "function_definition" then
|
||||||
|
remove_identifier = false
|
||||||
end
|
end
|
||||||
|
|
||||||
if remove_identifier then
|
if remove_identifier then
|
||||||
table.remove(res[i.Parameter], 1)
|
table.remove(res[i.Parameter], 1)
|
||||||
if vim.tbl_isempty(res[i.Parameter]) then
|
if vim.tbl_isempty(res[i.Parameter]) then
|
||||||
|
|||||||
@@ -299,7 +299,7 @@ end
|
|||||||
--- with multiple annotation conventions.
|
--- with multiple annotation conventions.
|
||||||
---@tag neogen-changelog
|
---@tag neogen-changelog
|
||||||
---@toc_entry Changes in neogen plugin
|
---@toc_entry Changes in neogen plugin
|
||||||
neogen.version = "2.15.1"
|
neogen.version = "2.15.2"
|
||||||
--minidoc_afterlines_end
|
--minidoc_afterlines_end
|
||||||
|
|
||||||
return neogen
|
return neogen
|
||||||
|
|||||||
Reference in New Issue
Block a user