Skip to content

Commit

Permalink
Fix jedi-vim issue davidhalter#385: extra '=' sign for params
Browse files Browse the repository at this point in the history
jedi-vim issue davidhalter#385:
  davidhalter/jedi-vim#385
  Completion of function arguments get an extra = sign
  • Loading branch information
StephenHesperus committed Apr 29, 2016
1 parent 6266678 commit 8e3fcfd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions jedi/api/classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 8e3fcfd

Please sign in to comment.