Skip to content

Commit f0ea2ad

Browse files
authored
Include params only for classes and functions (#272)
1 parent ff41880 commit f0ea2ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pylsp/plugins/jedi_completion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def pylsp_completions(config, document, position):
7373
_format_completion(
7474
c,
7575
markup_kind=preferred_markup_kind,
76-
include_params=include_params,
76+
include_params=include_params if c.type in ["class", "function"] else False,
7777
resolve=resolve_eagerly,
7878
resolve_label_or_snippet=(i < max_to_resolve)
7979
)

0 commit comments

Comments
 (0)