Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #35 from tkf/no-none-description

Do not return None from Completion.description
  • Loading branch information...
commit 95481be64c21fdee13febd6015b9788d1dea4894 2 parents f4b4ef1 + 40810b0
@davidhalter authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  jedi/api.py
View
3  jedi/api.py
@@ -67,7 +67,8 @@ def word(self):
def description(self):
""" Provides a description of the completion object
TODO return value is just __repr__ of some objects, improve! """
- return str(self.name.parent())
+ parent = self.name.parent()
+ return '' if parent is None else str(parent)
@property
def doc(self):
Please sign in to comment.
Something went wrong with that request. Please try again.