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

Function _make_signature

IPython/core/completer.py:972–991  ·  view source on GitHub ↗

Make the signature from a jedi completion Parameter ========= completion: jedi.Completion object does not complete a function type Returns ======= a string consisting of the function signature, with the parenthesis but without the function name. example:

(completion)

Source from the content-addressed store, hash-verified

970 return description[6:]
971
972def _make_signature(completion)-> str:
973 """
974 Make the signature from a jedi completion
975
976 Parameter
977 =========
978
979 completion: jedi.Completion
980 object does not complete a function type
981
982 Returns
983 =======
984
985 a string consisting of the function signature, with the parenthesis but
986 without the function name. example:
987 `(a, *args, b=1, **kwargs)`
988
989 """
990
991 return '(%s)'% ', '.join([f for f in (_formatparamchildren(p) for p in completion.params) if f])
992
993class IPCompleter(Completer):
994 """Extension of the completer class with IPython-specific features"""

Callers 1

_completionsMethod · 0.85

Calls 1

_formatparamchildrenFunction · 0.85

Tested by

no test coverage detected