Skip to content

Commit f3a53d8

Browse files
committed
Fix downstream further
1 parent 7c20fd6 commit f3a53d8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

IPython/core/completer.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2748,7 +2748,10 @@ def python_matcher(self, context: CompletionContext) -> SimpleMatcherResult:
27482748
# catches <undefined attributes>.<tab>
27492749
return SimpleMatcherResult(completions=[], suppress=False)
27502750
else:
2751-
matches = self.global_matches(context.token, context=context)
2751+
if "context" in inspect.signature(self.global_matches).parameters:
2752+
matches = self.global_matches(context.token, context=context)
2753+
else:
2754+
matches = self.global_matches(context.token)
27522755
# TODO: maybe distinguish between functions, modules and just "variables"
27532756
return SimpleMatcherResult(
27542757
completions=[

0 commit comments

Comments
 (0)