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

Method locate

bpython/autocomplete.py:298–303  ·  view source on GitHub ↗
(self, cursor_offset: int, line: str)

Source from the content-addressed store, hash-verified

296 super().__init__(True, mode)
297
298 def locate(self, cursor_offset: int, line: str) -> LinePart | None:
299 for completer in self._completers:
300 return_value = completer.locate(cursor_offset, line)
301 if return_value is not None:
302 return return_value
303 return None
304
305 def format(self, word: str) -> str:
306 return self._completers[0].format(word)

Callers

nothing calls this directly

Calls 1

locateMethod · 0.45

Tested by

no test coverage detected