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

Function _strip_underline

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

Source from the content-addressed store, hash-verified

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

Callers 1

format_docstringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected