diff --git a/jedi/api.py b/jedi/api.py index 126a1620..22bc4144 100644 --- a/jedi/api.py +++ b/jedi/api.py @@ -158,7 +158,7 @@ class Script(object): len(like), s) k = (new.word, new.complete) # key if k in comp_dct and settings.no_completion_duplicates: - comp_dct[k].same_name_completions.append(new) + comp_dct[k]._same_name_completions.append(new) else: comp_dct[k] = new comps.append(new) diff --git a/jedi/api_classes.py b/jedi/api_classes.py index a4fefffe..14d00129 100644 --- a/jedi/api_classes.py +++ b/jedi/api_classes.py @@ -165,7 +165,7 @@ class Completion(BaseDefinition): # Completion objects with the same Completion name (which means # duplicate items in the completion) - self.same_name_completions = [] + self._same_name_completions = [] self._followed_definitions = None