forked from VimPlug/jedi
fake docstrs fixed
This commit is contained in:
@@ -103,10 +103,8 @@ def get_faked(module, obj, name=None):
|
||||
if not isinstance(result, Class) and result is not None:
|
||||
# Set the docstr which was previously not set (faked modules don't
|
||||
# contain it).
|
||||
result.docstr = None
|
||||
if obj.__doc__:
|
||||
doc = '''"""%s"""''' % obj.__doc__ # TODO need escapes.
|
||||
result.docstr = tokenize.Token(tokenize.STRING, doc, (0, 0))
|
||||
result.add_docstr(tokenize.Token(tokenize.STRING, doc, (0, 0)))
|
||||
return result
|
||||
|
||||
|
||||
|
||||
@@ -182,7 +182,7 @@ class Simple(Base):
|
||||
|
||||
|
||||
class IsScope(Base):
|
||||
pass
|
||||
__slots__ = ()
|
||||
|
||||
|
||||
class Scope(Simple, IsScope, DocstringMixin):
|
||||
|
||||
Reference in New Issue
Block a user