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

Method locate

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

Source from the content-addressed store, hash-verified

497 return None
498
499 def locate(self, cursor_offset: int, line: str) -> LinePart | None:
500 return lineparts.current_dict_key(cursor_offset, line)
501
502 def format(self, match: str) -> str:
503 return match[:-1]

Callers 1

matchesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected