forked from VimPlug/jedi
Merge with the linter branch (especially the changes of pep484.
This commit is contained in:
@@ -89,7 +89,8 @@ def call_of_name(name, cut_own_trailer=False):
|
||||
return name
|
||||
|
||||
power = par.parent
|
||||
if tree.is_node(power, 'power') and power.children[0] != name \
|
||||
if tree.is_node(power, 'power', 'atom_expr') \
|
||||
and power.children[0] != name \
|
||||
and not (power.children[-2] == '**' and
|
||||
name.start_pos > power.children[-1].start_pos):
|
||||
par = power
|
||||
|
||||
Reference in New Issue
Block a user