##// END OF EJS Templates
fix getting signatures in jedi 0.17
Matthias Bussonnier -
Show More
@@ -988,6 +988,11 b' def _make_signature(completion)-> str:'
988
988
989 """
989 """
990
990
991 # it looks like this might work on jedi 0.17
992 if hasattr(completion, 'get_signatures'):
993 c0 = completion.get_signatures()[0]
994 return '('+c0.to_string().split('(', maxsplit=1)[1]
995
991 return '(%s)'% ', '.join([f for f in (_formatparamchildren(p) for signature in completion.get_signatures()
996 return '(%s)'% ', '.join([f for f in (_formatparamchildren(p) for signature in completion.get_signatures()
992 for p in signature.defined_names()) if f])
997 for p in signature.defined_names()) if f])
993
998
General Comments 0
You need to be logged in to leave comments. Login now