From 9d4bab9501c33dcf0e60f8dc782df2d6208c7dfc Mon Sep 17 00:00:00 2001 From: liuqianhonga Date: Sat, 14 Dec 2024 16:58:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8D=E5=AF=B9None=E5=81=9A=E5=A4=84?= =?UTF-8?q?=E7=90=86=EF=BC=8CNone=E5=88=B0=E6=A8=A1=E6=9D=BF=E4=B8=AD?= =?UTF-8?q?=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nodes/string_formatter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nodes/string_formatter.py b/nodes/string_formatter.py index dd17361..000c820 100644 --- a/nodes/string_formatter.py +++ b/nodes/string_formatter.py @@ -38,11 +38,11 @@ class StringFormatter: def format_string(cls, template, arg1=None, arg2=None, arg3=None, arg4=None, arg5=None, arg6=None, arg7=None, arg8=None, arg9=None, arg10=None): try: - # Create a dictionary of non-None arguments + # Create a dictionary of all arguments args_dict = { name: value for name, value in locals().items() - if name.startswith('arg') and value is not None + if name.startswith('arg') } # Format string using f-string style with the arguments dictionary