diff --git a/IPython/core/completer.py b/IPython/core/completer.py index fd3939f..207e487 100644 --- a/IPython/core/completer.py +++ b/IPython/core/completer.py @@ -988,6 +988,11 @@ def _make_signature(completion)-> str: """ + # it looks like this might work on jedi 0.17 + if hasattr(completion, 'get_signatures'): + c0 = completion.get_signatures()[0] + return '('+c0.to_string().split('(', maxsplit=1)[1] + return '(%s)'% ', '.join([f for f in (_formatparamchildren(p) for signature in completion.get_signatures() for p in signature.defined_names()) if f])