diff --git a/jedi/api/__init__.py b/jedi/api/__init__.py index 6da2e4ec..c8fcf9d4 100644 --- a/jedi/api/__init__.py +++ b/jedi/api/__init__.py @@ -484,14 +484,6 @@ class Script(object): definitions = follow_inexistent_imports(defs) else: definitions = [lhs] - if isinstance(user_stmt, pr.Statement): - c = user_stmt.expression_list() - if c and not isinstance(c[0], (str, unicode)) \ - and c[0].start_pos > self._pos \ - and not re.search(r'\.\w+$', goto_path): - # The cursor must be after the start, otherwise the - # statement is just an assignee. - definitions = [user_stmt] return definitions, search_name def usages(self, additional_module_paths=()):