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)
| 970 | return description[6:] |
| 971 | |
| 972 | def _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 | |
| 993 | class IPCompleter(Completer): |
| 994 | """Extension of the completer class with IPython-specific features""" |
no test coverage detected