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

Method b_matcher

tests/test_completer.py:1906–1920  ·  view source on GitHub ↗
(context: CompletionContext)

Source from the content-addressed store, hash-verified

1904
1905 @completion_matcher(identifier="b_matcher", api_version=2)
1906 def b_matcher(context: CompletionContext):
1907 text = context.token
1908 result = {"completions": [SimpleCompletion("completion_b")]}
1909
1910 if text == "suppress c":
1911 result["suppress"] = {"c_matcher"}
1912
1913 if text.startswith("suppress all"):
1914 result["suppress"] = True
1915 if text == "suppress all but c":
1916 result["do_not_suppress"] = {"c_matcher"}
1917 if text == "suppress all but a":
1918 result["do_not_suppress"] = {"a_matcher"}
1919
1920 return result
1921
1922 @completion_matcher(identifier="c_matcher")
1923 def c_matcher(text):

Callers

nothing calls this directly

Calls 1

SimpleCompletionClass · 0.90

Tested by

no test coverage detected