1
0
forked from VimPlug/jedi

updated complete interface

This commit is contained in:
David Halter
2012-08-31 17:38:21 +02:00
parent 3a8754b9f1
commit 654b845e71
2 changed files with 9 additions and 8 deletions

View File

@@ -30,12 +30,16 @@ class Completion(object):
dot = '.' if self.needs_dot else ''
return dot + self.name.names[-1][self.like_name_length:]
@property
def word(self):
return str(self.name.names[-1])
@property
def description(self):
return str(self.name.parent())
@property
def help(self):
def doc(self):
try:
return str(self.name.parent().docstr)
except AttributeError:
@@ -65,9 +69,6 @@ class Completion(object):
return ''
def __str__(self):
return self.name.names[-1]
class Definition(object):
def __init__(self, definition):