diff --git a/jedi/api.py b/jedi/api.py index 5311740a..ab2af7d0 100644 --- a/jedi/api.py +++ b/jedi/api.py @@ -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) """