Skip to content

Commit 572632e

Browse files
committed
test: tweak in alignment involving unprintable characters
This looks like a bug fix since the caret is now pointing right at the position of the unprintable character. I'm not sure if this is a result of an improvement via the `annotate-snippets` upgrade, or because of more accurate tracking of annotation ranges even after unprintable characters are replaced. I'm tempted to say the former since in theory the offsets were never wrong before because they were codepoint offsets. Regardless, this looks like an improvement.
1 parent 643deab commit 572632e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLE2512_invalid_characters.py.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ invalid_characters.py:55:25: PLE2512 [*] Invalid unescaped character SUB, use "\
4646
53 | zwsp_after_multicharacter_grapheme_cluster = f"ಫ್ರಾನ್ಸಿಸ್ಕೊ ​​"
4747
54 |
4848
55 | nested_fstrings = f'␈{f'{f''}'}'
49-
| ^ PLE2512
49+
| ^ PLE2512
5050
56 |
5151
57 | # https://github.com/astral-sh/ruff/issues/7455#issuecomment-1741998106
5252
|

0 commit comments

Comments
 (0)