diff --git a/crates/ruff_python_formatter/resources/test/fixtures/ruff/expression/fstring.py b/crates/ruff_python_formatter/resources/test/fixtures/ruff/expression/fstring.py index e5783e0a05cfb..52854c062a385 100644 --- a/crates/ruff_python_formatter/resources/test/fixtures/ruff/expression/fstring.py +++ b/crates/ruff_python_formatter/resources/test/fixtures/ruff/expression/fstring.py @@ -215,7 +215,7 @@ f"aaaaaaaaaaaaaaaa bbbbbbbbbbbbbbbbbb ccccccccccc { variable:.3f} ddddddddddddddd eeeeeeee" -# But, if it's triple-quoted then we can't other the format specificer will have a +# But, if it's triple-quoted then we can't or the format specificer will have a # trailing newline f"""aaaaaaaaaaaaaaaa bbbbbbbbbbbbbbbbbb ccccccccccc { variable:.3f} ddddddddddddddd eeeeeeee""" diff --git a/crates/ruff_python_formatter/tests/snapshots/format@expression__fstring.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@expression__fstring.py.snap index 4a70661c94517..a0e72a27fbe65 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@expression__fstring.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@expression__fstring.py.snap @@ -221,7 +221,7 @@ f"{ # comment 15 f"aaaaaaaaaaaaaaaa bbbbbbbbbbbbbbbbbb ccccccccccc { variable:.3f} ddddddddddddddd eeeeeeee" -# But, if it's triple-quoted then we can't other the format specificer will have a +# But, if it's triple-quoted then we can't or the format specificer will have a # trailing newline f"""aaaaaaaaaaaaaaaa bbbbbbbbbbbbbbbbbb ccccccccccc { variable:.3f} ddddddddddddddd eeeeeeee""" @@ -562,7 +562,7 @@ f"aaaaaaaaaaaaaaaa bbbbbbbbbbbbbbbbbb ccccccccccc { variable:.3f } ddddddddddddddd eeeeeeee" -# But, if it's triple-quoted then we can't other the format specificer will have a +# But, if it's triple-quoted then we can't or the format specificer will have a # trailing newline f"""aaaaaaaaaaaaaaaa bbbbbbbbbbbbbbbbbb ccccccccccc {variable:.3f} ddddddddddddddd eeeeeeee""" @@ -881,7 +881,7 @@ f"{ # comment 15 f"aaaaaaaaaaaaaaaa bbbbbbbbbbbbbbbbbb ccccccccccc { variable:.3f} ddddddddddddddd eeeeeeee" -# But, if it's triple-quoted then we can't other the format specificer will have a +# But, if it's triple-quoted then we can't or the format specificer will have a # trailing newline f"""aaaaaaaaaaaaaaaa bbbbbbbbbbbbbbbbbb ccccccccccc { variable:.3f} ddddddddddddddd eeeeeeee""" @@ -1193,7 +1193,7 @@ hello { + variable:.3f +} ddddddddddddddd eeeeeeee" - # But, if it's triple-quoted then we can't other the format specificer will have a + # But, if it's triple-quoted then we can't or the format specificer will have a # trailing newline -f"""aaaaaaaaaaaaaaaa bbbbbbbbbbbbbbbbbb ccccccccccc { - variable:.3f} ddddddddddddddd eeeeeeee"""