Skip to content

Commit 2238d41

Browse files
Improve signature pop-up.
1 parent 107aba8 commit 2238d41

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ptpython/layout.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ def get_text_fragments() -> StyleAndTextTuples:
240240

241241
append((Signature, " "))
242242
try:
243-
append((Signature, sig.full_name))
243+
append((Signature, sig.name))
244244
except IndexError:
245245
# Workaround for #37: https://github.com/jonathanslenders/python-prompt-toolkit/issues/37
246246
# See also: https://github.com/davidhalter/jedi/issues/490
@@ -260,7 +260,7 @@ def get_text_fragments() -> StyleAndTextTuples:
260260
# and sig has no 'index' attribute.
261261
# See: https://github.com/jonathanslenders/ptpython/issues/47
262262
# https://github.com/davidhalter/jedi/issues/598
263-
description = p.description if p else "*"
263+
description = p.to_string() if p else "*"
264264
sig_index = getattr(sig, "index", 0)
265265

266266
if i == sig_index:

0 commit comments

Comments
 (0)