8000 Fix signature index error (#461) · python-lsp/python-lsp-server@79f3ffe · GitHub
[go: up one dir, main page]

Skip to content

Commit 79f3ffe

Browse files
authored
Fix signature index error (#461)
1 parent d7fb817 commit 79f3ffe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyls/plugins/signature.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def pyls_signature_help(document, position):
2121

2222
s = signatures[0]
2323
sig = {
24-
'label': s.docstring().splitlines()[0],
24+
'label': (s.docstring().splitlines() or [''])[0],
2525
'documentation': _utils.format_docstring(s.docstring(raw=True))
2626
}
2727

0 commit comments

Comments
 (0)
0