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

Class SimpleCompletion

IPython/core/completer.py:552–573  ·  view source on GitHub ↗

Completion item to be included in the dictionary returned by new-style Matcher (API v2). .. warning:: Provisional This class is used to describe the currently supported attributes of simple completion items, and any additional implementation details should not

Source from the content-addressed store, hash-verified

550
551
552class SimpleCompletion:
553 """Completion item to be included in the dictionary returned by new-style Matcher (API v2).
554
555 .. warning::
556
557 Provisional
558
559 This class is used to describe the currently supported attributes of
560 simple completion items, and any additional implementation details
561 should not be relied on. Additional attributes may be included in
562 future versions, and meaning of text disambiguated from the current
563 dual meaning of "text to insert" and "text to used as a label".
564 """
565
566 __slots__ = ["text", "type"]
567
568 def __init__(self, text: str, *, type: Optional[str] = None):
569 self.text = text
570 self.type = type
571
572 def __repr__(self):
573 return f"<SimpleCompletion text={self.text!r} type={self.type!r}>"
574
575
576class _MatcherResultBase(TypedDict):

Callers 10

b_matcherMethod · 0.90
a_matcherMethod · 0.90
back_latex_name_matcherFunction · 0.85
file_matcherMethod · 0.85
magic_matcherMethod · 0.85
magic_color_matcherMethod · 0.85
python_matcherMethod · 0.85
unicode_name_matcherMethod · 0.85

Calls

no outgoing calls

Tested by 2

b_matcherMethod · 0.72
a_matcherMethod · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…