From 82ed9ba305df5574bcc5d751e9eff1f4b9e555a9 Mon Sep 17 00:00:00 2001 From: Phong Do Date: Wed, 10 Dec 2025 17:47:51 +0100 Subject: [PATCH] update snapshot test --- ...__rules__pyupgrade__tests__UP032_0.py.snap | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP032_0.py.snap b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP032_0.py.snap index 2ecb24ea07..a507e2ab85 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP032_0.py.snap +++ b/crates/ruff_linter/src/rules/pyupgrade/snapshots/ruff_linter__rules__pyupgrade__tests__UP032_0.py.snap @@ -901,6 +901,25 @@ help: Convert to f-string 131 | ### 132 | # Non-errors +UP032 [*] Use f-string instead of `format` call + --> UP032_0.py:136:1 + | +135 | # False-negative: RustPython doesn't parse the `\N{snowman}`. +136 | "\N{snowman} {}".format(a) + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ +137 | +138 | "{".format(a) + | +help: Convert to f-string +133 | ### +134 | +135 | # False-negative: RustPython doesn't parse the `\N{snowman}`. + - "\N{snowman} {}".format(a) +136 + f"\N{snowman} {a}" +137 | +138 | "{".format(a) +139 | + UP032 [*] Use f-string instead of `format` call --> UP032_0.py:160:1 |