From 8e3fcfd0070a20688759b9cb0aa43a8e25a04efe Mon Sep 17 00:00:00 2001 From: StephenHesperus Date: Fri, 29 Apr 2016 14:33:06 +0800 Subject: [PATCH] Fix jedi-vim issue #385: extra '=' sign for params jedi-vim issue #385: https://github.com/davidhalter/jedi-vim/issues/385 Completion of function arguments get an extra = sign --- jedi/api/classes.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/jedi/api/classes.py b/jedi/api/classes.py index a1d42bd0f..0701c817d 100644 --- a/jedi/api/classes.py +++ b/jedi/api/classes.py @@ -385,8 +385,9 @@ def _complete(self, like_name): if settings.add_dot_after_module: if isinstance(self._definition, tree.Module): append += '.' - if isinstance(self._definition, tree.Param): - append += '=' + # Remove those two lines should fix jedi-vim issue #385: https://github.com/davidhalter/jedi-vim/issues/385. + # if isinstance(self._definition, tree.Param): + # append += '=' name = str(self._name) if like_name: