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

Method locate

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

Source from the content-addressed store, hash-verified

611class ExpressionAttributeCompletion(AttrCompletion):
612 # could replace attr completion as a more general case with some work
613 def locate(self, cursor_offset: int, line: str) -> LinePart | None:
614 return lineparts.current_expression_attribute(cursor_offset, line)
615
616 def matches(
617 self,

Callers 1

matchesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected