Skip to content

Commit 64484bb

Browse files
committed
This will work
1 parent f3a53d8 commit 64484bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

IPython/core/completer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2748,9 +2748,9 @@ def python_matcher(self, context: CompletionContext) -> SimpleMatcherResult:
27482748
# catches <undefined attributes>.<tab>
27492749
return SimpleMatcherResult(completions=[], suppress=False)
27502750
else:
2751-
if "context" in inspect.signature(self.global_matches).parameters:
2751+
try:
27522752
matches = self.global_matches(context.token, context=context)
2753-
else:
2753+
except TypeError:
27542754
matches = self.global_matches(context.token)
27552755
# TODO: maybe distinguish between functions, modules and just "variables"
27562756
return SimpleMatcherResult(

0 commit comments

Comments
 (0)