Skip to content

Commit 08a00aa

Browse files
committed
Fix the bug with removing fields_elem from a wrong parent
1 parent 9846116 commit 08a00aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bpystubgen/directives.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def parse_docstring(self) -> DocStringInfo:
130130

131131
fields[f_name.astext().strip()] = f_body.astext().strip()
132132

133-
docstring.remove(fields_elem)
133+
fields_elem.parent.remove(fields_elem)
134134
except StopIteration:
135135
pass
136136

0 commit comments

Comments
 (0)