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

Method locate

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

Source from the content-addressed store, hash-verified

528 return {name for name in MAGIC_METHODS if name.startswith(r.word)}
529
530 def locate(self, cursor_offset: int, line: str) -> LinePart | None:
531 return lineparts.current_method_definition_name(cursor_offset, line)
532
533
534class GlobalCompletion(BaseCompletionType):

Callers 1

matchesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected