1
0
forked from VimPlug/jedi

Fix more argument related stuff.

This commit is contained in:
Dave Halter
2014-10-20 16:34:17 +02:00
parent 1a639bd118
commit 43e3452474
4 changed files with 17 additions and 7 deletions

View File

@@ -184,7 +184,7 @@ class Evaluator(object):
"""
if isinstance(atom, pr.Name):
# This is the first global lookup.
stmt = atom.get_parent_until((pr.ExprStmt, pr.ReturnStmt))
stmt = atom.get_parent_until((pr.ExprStmt, pr.ReturnStmt, pr.Scope))
return self.find_types(stmt.parent, atom, stmt.start_pos,
search_global=True)
elif isinstance(atom, pr.Literal):