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

Function _formatparamchildren

IPython/core/completer.py:1812–1832  ·  view source on GitHub ↗

Get parameter name and value from Jedi Private API Jedi does not expose a simple way to get `param=value` from its API. Parameters ---------- parameter Jedi's function `Param` Returns ------- A string like 'a', 'b=1', '*args', '**kwargs'

(parameter)

Source from the content-addressed store, hash-verified

1810 return no_match
1811
1812def _formatparamchildren(parameter) -> str:
1813 """
1814 Get parameter name and value from Jedi Private API
1815
1816 Jedi does not expose a simple way to get `param=value` from its API.
1817
1818 Parameters
1819 ----------
1820 parameter
1821 Jedi's function `Param`
1822
1823 Returns
1824 -------
1825 A string like 'a', 'b=1', '*args', '**kwargs'
1826
1827 """
1828 description = parameter.description
1829 if not description.startswith('param '):
1830 raise ValueError('Jedi function parameter description have change format.'
1831 'Expected "param ...", found %r".' % description)
1832 return description[6:]
1833
1834def _make_signature(completion)-> str:
1835 """

Callers 1

_make_signatureFunction · 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…