forked from VimPlug/jedi
Fix for unwanted NameError exception in static analysis with named params.
This commit is contained in:
@@ -223,7 +223,10 @@ def get_module_statements(module):
|
|||||||
c = child.children
|
c = child.children
|
||||||
if c[0] == '(' and c[1] != ')':
|
if c[0] == '(' and c[1] != ')':
|
||||||
if c[1].type != 'arglist':
|
if c[1].type != 'arglist':
|
||||||
nodes.append(c[1])
|
if c[1].type == 'argument':
|
||||||
|
nodes.append(c[1].children[-1])
|
||||||
|
else:
|
||||||
|
nodes.append(c[1])
|
||||||
else:
|
else:
|
||||||
for argument in c[1].children:
|
for argument in c[1].children:
|
||||||
if argument.type == 'argument':
|
if argument.type == 'argument':
|
||||||
|
|||||||
Reference in New Issue
Block a user