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

Function _strip_underline

docs/autogen_magics.py:10–15  ·  view source on GitHub ↗
(line)

Source from the content-addressed store, hash-verified

8magics = shell.magics_manager.magics
9
10def _strip_underline(line):
11 chars = set(line.strip())
12 if len(chars) == 1 and ("-" in chars or "=" in chars):
13 return ""
14 else:
15 return line
16
17def format_docstring(func):
18 docstring = (func.__doc__ or "Undocumented").rstrip()

Callers 1

format_docstringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…