We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73a1255 commit 8fa5ddbCopy full SHA for 8fa5ddb
src/ptpython/completer.py
@@ -285,12 +285,15 @@ def get_completions(
285
if jc.type == "param":
286
suffix = "..."
287
288
+ style = _get_style_for_jedi_completion(jc)
289
+ display_meta = jc.type if style == "" else [(style, jc.type)]
290
+
291
yield Completion(
292
jc.name_with_symbols,
293
len(jc.complete) - len(jc.name_with_symbols),
294
display=jc.name_with_symbols + suffix,
- display_meta=jc.type,
- style=_get_style_for_jedi_completion(jc),
295
+ display_meta=display_meta,
296
+ style=style,
297
)
298
299
0 commit comments