1
0
forked from VimPlug/jedi

Some docstrings for the parser.

This commit is contained in:
Dave Halter
2017-04-26 18:16:50 +02:00
parent c124fc91ca
commit dea09b096d
2 changed files with 8 additions and 2 deletions

View File

@@ -47,6 +47,9 @@ class DocstringMixin(object):
__slots__ = ()
def get_doc_node(self):
"""
Returns the string leaf of a docstring. e.g. `r'foo'`
"""
if self.type == 'file_input':
node = self.children[0]
elif isinstance(self, ClassOrFunc):