Skip to content

Commit a9e97ac

Browse files
committed
PythonCodeCompletion: update for change in jedi api for calltips
1 parent 82d84ec commit a9e97ac

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

PythonCodeCompletion/python/python_completion_server.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,11 @@ def complete_tip(self,path,source,line,column):
129129
calltip = ''
130130
for c in call_def:
131131
calltip=c.call_name+'('
132-
calltip+=', '.join([p.get_name().names[0] for p in c.params])+')'
132+
if jedi.__version__ >= '0.8.0':
133+
calltip+=', '.join([p.name for p in c.params])+')'
134+
else:
135+
calltip+=', '.join([p.get_name().names[0] for p in c.params])+')'
136+
calltip = '\n'.join(textwrap.wrap(calltip,70))
133137
calltip = '\n'.join(textwrap.wrap(calltip,70))
134138
# docstr=''
135139
# for p in c.params:

0 commit comments

Comments
 (0)