diff --git a/IPython/core/completer.py b/IPython/core/completer.py index bc114f0f66b..374a35d7aed 100644 --- a/IPython/core/completer.py +++ b/IPython/core/completer.py @@ -988,7 +988,8 @@ def _make_signature(completion)-> str: """ - return '(%s)'% ', '.join([f for f in (_formatparamchildren(p) for p in completion.params) if f]) + return '(%s)'% ', '.join([f for f in (_formatparamchildren(p) for signature in completion.get_signatures() + for p in signature.defined_names()) if f]) class IPCompleter(Completer): """Extension of the completer class with IPython-specific features""" @@ -1398,7 +1399,7 @@ def _jedi_matches(self, cursor_column:int, cursor_line:int, text:str): if not try_jedi: return [] try: - return filter(completion_filter, interpreter.completions()) + return filter(completion_filter, interpreter.complete()) except Exception as e: if self.debug: return [_FakeJediCompletion('Oops Jedi has crashed, please report a bug with the following:\n"""\n%s\ns"""' % (e))] diff --git a/setup.py b/setup.py index daf5f55f000..c40f756b219 100755 --- a/setup.py +++ b/setup.py @@ -185,14 +185,14 @@ ) install_requires = [ - 'setuptools>=18.5', - 'jedi>=0.10', - 'decorator', - 'pickleshare', - 'traitlets>=4.2', - 'prompt_toolkit>=2.0.0,<3.1.0,!=3.0.0,!=3.0.1', - 'pygments', - 'backcall', + "setuptools>=18.5", + "jedi>=0.16", + "decorator", + "pickleshare", + "traitlets>=4.2", + "prompt_toolkit>=2.0.0,<3.1.0,!=3.0.0,!=3.0.1", + "pygments", + "backcall", ] # Platform-specific dependencies: