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

Method locate

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

Source from the content-addressed store, hash-verified

368 return matches
369
370 def locate(self, cursor_offset: int, line: str) -> LinePart | None:
371 return lineparts.current_string(cursor_offset, line)
372
373 def format(self, filename: str) -> str:
374 if os.sep in filename[:-1]:

Callers

nothing calls this directly

Calls 1

current_stringMethod · 0.80

Tested by

no test coverage detected