Get rid of get_parent_until.
This commit is contained in:
1 parent
b3cb7b5490
commit
445bf6c419
9 files changed
+15
-30
No files matched your search
@@ -69,7 +69,7 @@ def _fix_forward_reference(context, node):
|
||||
debug.warning('Annotation not parsed: %s' % evaled_node.obj)
|
||||
return node
|
||||
else:
|
||||
module = node.get_parent_until()
|
||||
module = node.get_root_node()
|
||||
new_node.move(module.end_pos[0])
|
||||
new_node.parent = context.tree_node
|
||||
return new_node
|
||||
|
||||
Reference in new issue
Block a user