MCPcopy Index your code
hub / github.com/ipython/ipython / _adjust_completion_text_based_on_context

Function _adjust_completion_text_based_on_context

IPython/terminal/ptutils.py:91–95  ·  view source on GitHub ↗
(text, body, offset)

Source from the content-addressed store, hash-verified

89
90
91def _adjust_completion_text_based_on_context(text, body, offset):
92 if text.endswith('=') and len(body) > offset and body[offset] == '=':
93 return text[:-1]
94 else:
95 return text
96
97
98class IPythonPTCompleter(Completer):

Calls

no outgoing calls

Used in the wild real call sites across dependent graphs

searching dependent graphs…