1
0
forked from VimPlug/jedi

At least functions generate docstrings again.

This commit is contained in:
Dave Halter
2014-11-20 01:37:18 +01:00
parent 22b288fc73
commit ce5d428d22
3 changed files with 39 additions and 16 deletions

View File

@@ -104,7 +104,8 @@ def get_faked(module, obj, name=None):
# Set the docstr which was previously not set (faked modules don't
# contain it).
doc = '''"""%s"""''' % obj.__doc__ # TODO need escapes.
result.add_docstr(tokenize.Token(tokenize.STRING, doc, (0, 0)))
# TODO We need to add the docstr in a proper way.
#result.add_docstr(tokenize.Token(tokenize.STRING, doc, (0, 0)))
return result