mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-05 21:38:47 +08:00
Fix for unwanted NameError exception in static analysis with named params.
This commit is contained in:
1 parent
a762e0bcec
commit
a4c454c103
1 file changed
+4
-1
@@ -223,7 +223,10 @@ def get_module_statements(module):
|
||||
c = child.children
|
||||
if c[0] == '(' and c[1] != ')':
|
||||
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:
|
||||
for argument in c[1].children:
|
||||
if argument.type == 'argument':
|
||||
|
||||
Reference in new issue
Block a user