From 77c87cabe88ef551fbda34d9054348336f7e085d Mon Sep 17 00:00:00 2001 From: Shixian Li Date: Sat, 27 Dec 2025 20:41:57 +0800 Subject: [PATCH] Update Lib/idlelib/calltip.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com> --- Lib/idlelib/calltip.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Lib/idlelib/calltip.py b/Lib/idlelib/calltip.py index db49ac0bea8..46492fe7133 100644 --- a/Lib/idlelib/calltip.py +++ b/Lib/idlelib/calltip.py @@ -187,8 +187,7 @@ def get_argspec(ob): # Augment lines from docstring, if any, and join to get argspec. doc = inspect.getdoc(ob) if doc: - for line in doc.split('\n'): - lines.append(line.strip()) + lines.extend(map(str.strip, doc.split('\n'))) argspec = '\n'.join(lines) return argspec or _default_callable_argspec