aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/shibokenmodule/files.dir/shibokensupport/signature/errorhandler.py
diff options
context:
space:
mode:
Diffstat (limited to 'sources/shiboken6/shibokenmodule/files.dir/shibokensupport/signature/errorhandler.py')
-rw-r--r--sources/shiboken6/shibokenmodule/files.dir/shibokensupport/signature/errorhandler.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/sources/shiboken6/shibokenmodule/files.dir/shibokensupport/signature/errorhandler.py b/sources/shiboken6/shibokenmodule/files.dir/shibokensupport/signature/errorhandler.py
index 8ddb75c19..df7a0bca8 100644
--- a/sources/shiboken6/shibokenmodule/files.dir/shibokensupport/signature/errorhandler.py
+++ b/sources/shiboken6/shibokenmodule/files.dir/shibokensupport/signature/errorhandler.py
@@ -111,21 +111,21 @@ def seterror_argument(args, func_name):
# temp!
found = matched_type(args, sigs)
if found:
- msg = dedent("""
+ msg = dedent(f"""
'{func_name}' called with wrong argument values:
{func_name}{args}
Found signature:
{func_name}{found}
- """.format(**locals())).strip()
+ """).strip()
return ValueError, msg
type_str = ", ".join(type(arg).__name__ for arg in args)
- msg = dedent("""
+ msg = dedent(f"""
'{func_name}' called with wrong argument types:
{func_name}({type_str})
Supported signatures:
- """.format(**locals())).strip()
+ """).strip()
for sig in sigs:
- msg += "\n {func_name}{sig}".format(**locals())
+ msg += f"\n {func_name}{sig}"
# We don't raise the error here, to avoid the loader in the traceback.
return TypeError, msg