fix(python) Do not duplicate "Throw" annotations (#142)
* Fixed Python docstring duplicate throw parsing error * ref(python): remove unecessary recursive * Stylua --------- Co-authored-by: danymat <d.danymat@gmail.com>
This commit is contained in:
@@ -15,7 +15,6 @@ local parent = {
|
||||
return {
|
||||
-- Search for these nodes
|
||||
parent = parent,
|
||||
|
||||
-- Traverse down these nodes and extract the information as necessary
|
||||
data = {
|
||||
func = {
|
||||
@@ -84,10 +83,16 @@ return {
|
||||
subtree = {
|
||||
{
|
||||
retrieve = "first",
|
||||
node_type = "identifier",
|
||||
node_type = "call",
|
||||
recursive = true,
|
||||
subtree = {
|
||||
{
|
||||
retrieve = "first",
|
||||
node_type = "identifier",
|
||||
extract = true,
|
||||
as = i.Throw,
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -258,12 +263,10 @@ return {
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
-- Use default granulator and generator
|
||||
locator = nil,
|
||||
granulator = nil,
|
||||
generator = nil,
|
||||
|
||||
template = template
|
||||
:config({
|
||||
append = { position = "after", child_name = "comment", fallback = "block", disabled = { "file" } },
|
||||
|
||||
Reference in New Issue
Block a user