MCPcopy Index your code
hub / github.com/bpython/bpython / _method_match_fuzzy

Function _method_match_fuzzy

bpython/autocomplete.py:208–210  ·  view source on GitHub ↗
(word: str, size: int, text: str)

Source from the content-addressed store, hash-verified

206
207
208def _method_match_fuzzy(word: str, size: int, text: str) -> bool:
209 s = r".*{}.*".format(".*".join(c for c in text))
210 return re.search(s, word) is not None
211
212
213_MODES_MAP = {

Callers

nothing calls this directly

Calls 2

searchMethod · 0.80
formatMethod · 0.45

Tested by

no test coverage detected