MCPcopy Index your code
hub / github.com/ipython/ipython / custom_completer_matcher

Method custom_completer_matcher

IPython/core/completer.py:3207–3218  ·  view source on GitHub ↗

Dispatch custom completer. If a match is found, suppresses all other matchers except for Jedi.

(self, context)

Source from the content-addressed store, hash-verified

3205
3206 @context_matcher()
3207 def custom_completer_matcher(self, context):
3208 """Dispatch custom completer.
3209
3210 If a match is found, suppresses all other matchers except for Jedi.
3211 """
3212 matches = self.dispatch_custom_completer(context.token) or []
3213 result = _convert_matcher_v1_result_to_v2(
3214 matches, type=_UNKNOWN_TYPE, suppress_if_matches=True
3215 )
3216 result["ordered"] = True
3217 result["do_not_suppress"] = {_get_matcher_id(self._jedi_matcher)}
3218 return result
3219
3220 def dispatch_custom_completer(self, text):
3221 """

Callers

nothing calls this directly

Calls 3

_get_matcher_idFunction · 0.85

Tested by

no test coverage detected