diff --git a/jedi/evaluate/__init__.py b/jedi/evaluate/__init__.py index c1532ae1..a162de83 100644 --- a/jedi/evaluate/__init__.py +++ b/jedi/evaluate/__init__.py @@ -516,7 +516,7 @@ class Evaluator(object): )) scope = name.get_parent_scope() - if tree.is_node(name.parent, 'trailer') and name.parent.children[0] == '.': + if tree.is_node(par, 'trailer') and par.children[0] == '.': call = helpers.call_of_leaf(name, cut_own_trailer=True) types = self.eval_element(call) return resolve_implicit_imports(iterable.unite(