File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -237,15 +237,13 @@ def _format_argument_list(allow_args: Union[List[str], int]):
237
237
elif allow_args == 1 :
238
238
return " except for the first argument"
239
239
elif isinstance (allow_args , int ):
240
- return " except for the first {num_args } arguments" . format ( num_args = allow_args )
240
+ return f " except for the first { allow_args } arguments"
241
241
elif len (allow_args ) == 1 :
242
- return " except for the argument '{arg}'" . format ( arg = allow_args [0 ])
242
+ return f " except for the argument '{ allow_args [0 ]} '"
243
243
else :
244
244
last = allow_args [- 1 ]
245
245
args = ", " .join (["'" + x + "'" for x in allow_args [:- 1 ]])
246
- return " except for the arguments {args} and '{last}'" .format (
247
- args = args , last = last
248
- )
246
+ return f" except for the arguments { args } and '{ last } '"
249
247
250
248
251
249
def deprecate_nonkeyword_arguments (
You can’t perform that action at this time.
0 commit comments