1
0
forked from VimPlug/jedi

usages issues.

This commit is contained in:
Dave Halter
2014-09-25 00:14:43 +02:00
parent 9ecf3774a0
commit 59225ceaa3
4 changed files with 6 additions and 16 deletions

View File

@@ -337,7 +337,7 @@ class Evaluator(object):
# name only. Otherwise it's a mixture between a definition and a
# reference. In this case it's just a definition. So we stay on it.
if len(call_path) == 1 and isinstance(call_path[0], pr.NamePart) \
and call_path[0] in [d.names[-1] for d in stmt.get_defined_names()]:
and call_path[0] in stmt.get_defined_names():
# Named params should get resolved to their param definitions.
if pr.Array.is_type(stmt.parent, pr.Array.TUPLE, pr.Array.NOARRAY) \
and stmt.parent.previous: