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

Function line_with_cursor

bpython/test/test_line_properties.py:51–52  ·  view source on GitHub ↗
(cursor_offset: int, line: str)

Source from the content-addressed store, hash-verified

49
50
51def line_with_cursor(cursor_offset: int, line: str) -> str:
52 return line[:cursor_offset] + "|" + line[cursor_offset:]
53
54
55def encode(cursor_offset: int, line: str, result: LinePart | None) -> str:

Callers 2

encodeFunction · 0.85
assertAccessMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected