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

Method match

tests/test_completer.py:1075–1077  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

1073 delims = " \t\n`!@#$^&*()=+[{]}\\|;:'\",<>?"
1074
1075 def match(*args, **kwargs):
1076 quote, offset, matches = match_dict_keys(*args, delims=delims, **kwargs)
1077 return quote, offset, list(matches)
1078
1079 keys = ["foo", b"far"]
1080 assert match(keys, "b'") == ("'", 2, ["far"])

Callers 15

runMethod · 0.80
filter_nsFunction · 0.80
strip_encoding_cookieFunction · 0.80
dispatchMethod · 0.80
_preceding_textFunction · 0.80
_following_textFunction · 0.80
raw_string_parenthesisFunction · 0.80
raw_string_bracketFunction · 0.80
raw_string_bracesFunction · 0.80
split_user_inputFunction · 0.80
store_inputsMethod · 0.80
extract_hist_rangesFunction · 0.80

Calls 1

match_dict_keysFunction · 0.90

Tested by

no test coverage detected