forked from VimPlug/jedi
Get a few more things right with params.
This commit is contained in:
@@ -207,7 +207,7 @@ class Evaluator(object):
|
||||
if isinstance(atom, pr.Name):
|
||||
# This is the first global lookup.
|
||||
stmt = atom.get_parent_until((pr.ExprStmt, pr.ReturnStmt, pr.Scope))
|
||||
return self.find_types(stmt.parent, atom, stmt.start_pos,
|
||||
return self.find_types(stmt.get_parent_until(pr.IsScope), atom, stmt.start_pos,
|
||||
search_global=True)
|
||||
elif isinstance(atom, pr.Literal):
|
||||
return [compiled.create(self, atom.eval())]
|
||||
|
||||
Reference in New Issue
Block a user