1
0
forked from VimPlug/jedi

Fix an issue with None docstrings

This commit is contained in:
Dave Halter
2019-05-31 15:31:46 +02:00
parent 6cdde65052
commit cdc9520c9d
2 changed files with 15 additions and 9 deletions

View File

@@ -728,15 +728,15 @@ class _Help(object):
doc = context.py__doc__()
if raw:
signature_text = ''
else:
signature_text = _format_signatures(context)
if not doc and context.is_stub():
for c in stub_to_actual_context_set(context):
doc = c.py__doc__()
if doc:
break
signature_text = ''
if self._name.is_context_name:
if not raw:
signature_text = _format_signatures(context)
if not doc and context.is_stub():
for c in stub_to_actual_context_set(context):
doc = c.py__doc__()
if doc:
break
if signature_text and doc:
full_doc += signature_text + '\n\n' + doc