MCPcopy Create free account
hub / github.com/ipython/ipython / _adjust_completion_text_based_on_context

Function _adjust_completion_text_based_on_context

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

Source from the content-addressed store, hash-verified

75
76
77def _adjust_completion_text_based_on_context(text, body, offset):
78 if text.endswith('=') and len(body) > offset and body[offset] == '=':
79 return text[:-1]
80 else:
81 return text
82
83
84class IPythonPTCompleter(Completer):

Calls

no outgoing calls