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

Method matches

bpython/autocomplete.py:308–321  ·  view source on GitHub ↗
(
        self, cursor_offset: int, line: str, **kwargs: Any
    )

Source from the content-addressed store, hash-verified

306 return self._completers[0].format(word)
307
308 def matches(
309 self, cursor_offset: int, line: str, **kwargs: Any
310 ) -> set[str] | None:
311 return_value = None
312 all_matches = set()
313 for completer in self._completers:
314 matches = completer.matches(
315 cursor_offset=cursor_offset, line=line, **kwargs
316 )
317 if matches is not None:
318 all_matches.update(matches)
319 return_value = all_matches
320
321 return return_value
322
323
324class ImportCompletion(BaseCompletionType):

Calls 2

updateMethod · 0.80
matchesMethod · 0.45