MCPcopy Create free account
hub / github.com/bpython/bpython / locate

Method locate

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

Source from the content-addressed store, hash-verified

336 return self.module_gatherer.complete(cursor_offset, line)
337
338 def locate(self, cursor_offset: int, line: str) -> LinePart | None:
339 return lineparts.current_word(cursor_offset, line)
340
341 def format(self, word: str) -> str:
342 return _after_last_dot(word)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected