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

Function to_rst

docs/autogen_shortcuts.py:147–149  ·  view source on GitHub ↗
(key)

Source from the content-addressed store, hash-verified

145 """Format prompt toolkit key with modifier into an RST representation."""
146
147 def to_rst(key):
148 escaped = key.replace("\\", "\\\\")
149 return f":kbd:`{escaped}`"
150
151 keys_to_press: List[str]
152

Callers 1

format_prompt_keysFunction · 0.85

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…