mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-27 04:13:17 +08:00
raw_doc additionally, for #53
This commit is contained in:
1 parent
90a4a9240b
commit
9650520f60
1 file changed
+8
@@ -83,6 +83,14 @@ class Completion(object):
|
|||||||
except AttributeError:
|
except AttributeError:
|
||||||
return ''
|
return ''
|
||||||
|
|
||||||
|
@property
|
||||||
|
def raw_doc(self):
|
||||||
|
""" Returns the docstring `__doc__` for any object """
|
||||||
|
try:
|
||||||
|
return str(self.name.parent().docstr)
|
||||||
|
except AttributeError :
|
||||||
|
return ''
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def type(self):
|
def type(self):
|
||||||
""" Returns the type of a completion object (e.g. Function/Class) """
|
""" Returns the type of a completion object (e.g. Function/Class) """
|
||||||
|
|||||||
Reference in new issue
Block a user