"Use f-strings instead!",
)
-old_fmt_string3 = (
- "Whereas only the strings after the percent sign were long in the last example, this example uses a long initial string as well. This is another %s %s %s %s"
- % (
- "really really really really really",
- "old",
- "way to format strings!",
- "Use f-strings instead!",
- )
+old_fmt_string3 = "Whereas only the strings after the percent sign were long in the last example, this example uses a long initial string as well. This is another %s %s %s %s" % (
+ "really really really really really",
+ "old",
+ "way to format strings!",
+ "Use f-strings instead!",
)
fstring = f"f-strings definitely make things more {difficult} than they need to be for {{black}}. But boy they sure are handy. The problem is that some lines will need to have the 'f' whereas others do not. This {line}, for example, needs one."
), # comment after comma
)
+func_with_bad_parens_that_wont_fit_in_one_line(
+ ("short string that should have parens stripped"), x, y, z
+)
+
+func_with_bad_parens_that_wont_fit_in_one_line(
+ x, y, ("short string that should have parens stripped"), z
+)
+
func_with_bad_parens(
- ("short string that should have parens stripped"), x, y, z,
+ ("short string that should have parens stripped"),
+ x,
+ y,
+ z,
)
func_with_bad_parens(
- x, y, ("short string that should have parens stripped"), z,
+ x,
+ y,
+ ("short string that should have parens stripped"),
+ z,
)
annotated_variable: Final = (