1
0
forked from VimPlug/jedi

raw_doc additionally, for #53

This commit is contained in:
David Halter
2012-11-06 19:13:00 +01:00
parent 90a4a9240b
commit 9650520f60

View File

@@ -83,6 +83,14 @@ class Completion(object):
except AttributeError:
return ''
@property
def raw_doc(self):
""" Returns the docstring `__doc__` for any object """
try:
return str(self.name.parent().docstr)
except AttributeError :
return ''
@property
def type(self):
""" Returns the type of a completion object (e.g. Function/Class) """