Skip to content

Commit 7c20fd6

Browse files
committed
Fix downstream compatibility
1 parent 8c1cf78 commit 7c20fd6

1 file changed

Lines changed: 2 additions & 11 deletions

File tree

IPython/core/completer.py

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1127,16 +1127,7 @@ def complete(self, text, state):
11271127
except IndexError:
11281128
return None
11291129

1130-
def global_matches(self, text: str):
1131-
"""Compute matches when text is a simple name.
1132-
1133-
Return a list of all keywords, built-in functions and names currently
1134-
defined in self.namespace or self.global_namespace that match.
1135-
1136-
"""
1137-
return self._global_matches(text)
1138-
1139-
def _global_matches(self, text: str, context: Optional[CompletionContext] = None):
1130+
def global_matches(self, text: str, context: Optional[CompletionContext] = None):
11401131
"""Compute matches when text is a simple name.
11411132
11421133
Return a list of all keywords, built-in functions and names currently
@@ -2757,7 +2748,7 @@ def python_matcher(self, context: CompletionContext) -> SimpleMatcherResult:
27572748
# catches <undefined attributes>.<tab>
27582749
return SimpleMatcherResult(completions=[], suppress=False)
27592750
else:
2760-
matches = self._global_matches(context.token, context)
2751+
matches = self.global_matches(context.token, context=context)
27612752
# TODO: maybe distinguish between functions, modules and just "variables"
27622753
return SimpleMatcherResult(
27632754
completions=[

0 commit comments

Comments
 (0)