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

Method locate

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

Source from the content-addressed store, hash-verified

411 }
412
413 def locate(self, cursor_offset: int, line: str) -> LinePart | None:
414 return lineparts.current_dotted_attribute(cursor_offset, line)
415
416 def format(self, word: str) -> str:
417 return _after_last_dot(word)

Callers 6

matchesMethod · 0.95
substituteMethod · 0.45
updateMethod · 0.45
locateMethod · 0.45

Calls

no outgoing calls