1
0
forked from VimPlug/jedi

Better signature support for docstrings

This commit is contained in:
Dave Halter
2019-05-05 19:09:21 +02:00
parent f996df087e
commit 2cb1bd162f
9 changed files with 42 additions and 34 deletions

View File

@@ -181,19 +181,6 @@ def get_call_signature_for_any(any_node):
return call_signature
def get_doc_with_call_signature(scope_node):
"""
Return a document string including call signature.
"""
call_signature = get_call_signature_for_any(scope_node)
doc = clean_scope_docstring(scope_node)
if call_signature is None:
return doc
if not doc:
return call_signature
return '%s\n\n%s' % (call_signature, doc)
def move(node, line_offset):
"""
Move the `Node` start_pos.