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

Function _formatparamchildren

IPython/core/completer.py:947–970  ·  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. Parameter ========= parameter: Jedi's function `Param` Returns ======= A string like 'a', 'b=1', '*args', '**kwargs'

(parameter)

Source from the content-addressed store, hash-verified

945
946
947def _formatparamchildren(parameter) -> str:
948 """
949 Get parameter name and value from Jedi Private API
950
951 Jedi does not expose a simple way to get `param=value` from its API.
952
953 Parameter
954 =========
955
956 parameter:
957 Jedi's function `Param`
958
959 Returns
960 =======
961
962 A string like 'a', 'b=1', '*args', '**kwargs'
963
964
965 """
966 description = parameter.description
967 if not description.startswith('param '):
968 raise ValueError('Jedi function parameter description have change format.'
969 'Expected "param ...", found %r".' % description)
970 return description[6:]
971
972def _make_signature(completion)-> str:
973 """

Callers 1

_make_signatureFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected