Skip to content

Commit d5788b5

Browse files
committed
Addressed code review comments.
1 parent b529f07 commit d5788b5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pylsp/plugins/hover.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def pylsp_hover(config, document, position):
4545

4646
# raw docstring returns only doc, without signature
4747
docstring = definition.docstring(raw=True)
48-
if include_docstring is False:
48+
if not include_docstring:
4949
if signature:
5050
docstring = ""
5151
else:

pylsp/plugins/signature.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def pylsp_signature_help(config, document, position):
4444
function_sig = " ".join([line.strip() for line in function_sig_lines])
4545

4646
signature_docstring = s.docstring(raw=True)
47-
if signature_config.get("include_docstring", True) is False:
47+
if not signature_config.get("include_docstring", True):
4848
signature_docstring = ""
4949

5050
sig = {

0 commit comments

Comments
 (0)