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

Method magic_config_matcher

IPython/core/completer.py:2415–2419  ·  view source on GitHub ↗

Match class names and attributes for %config magic.

(self, context: CompletionContext)

Source from the content-addressed store, hash-verified

2413
2414 @context_matcher()
2415 def magic_config_matcher(self, context: CompletionContext) -> SimpleMatcherResult:
2416 """Match class names and attributes for %config magic."""
2417 # NOTE: uses `line_buffer` equivalent for compatibility
2418 matches = self.magic_config_matches(context.line_with_cursor)
2419 return _convert_matcher_v1_result_to_v2_no_no(matches, type="param")
2420
2421 def magic_config_matches(self, text: str) -> list[str]:
2422 """Match class names and attributes for %config magic.

Callers

nothing calls this directly

Tested by

no test coverage detected