---
source: crates/ruff_linter/src/rules/pylint/mod.rs
---
invalid_characters.py:24:12: PLE2512 [*] Invalid unescaped character SUB, use "\x1A" instead
   |
22 | cr_ok = f'\\r'
23 | 
24 | sub = 'sub '
   |             PLE2512
25 | sub = f'sub '
   |
   = help: Replace with escape sequence

ℹ Safe fix
21 21 | cr_ok = '\\r'
22 22 | cr_ok = f'\\r'
23 23 | 
24    |-sub = 'sub '
   24 |+sub = 'sub \x1A'
25 25 | sub = f'sub '
26 26 | 
27 27 | sub_ok = '\x1a'

invalid_characters.py:25:13: PLE2512 [*] Invalid unescaped character SUB, use "\x1A" instead
   |
24 | sub = 'sub '
25 | sub = f'sub '
   |              PLE2512
26 | 
27 | sub_ok = '\x1a'
   |
   = help: Replace with escape sequence

ℹ Safe fix
22 22 | cr_ok = f'\\r'
23 23 | 
24 24 | sub = 'sub '
25    |-sub = f'sub '
   25 |+sub = f'sub \x1A'
26 26 | 
27 27 | sub_ok = '\x1a'
28 28 | sub_ok = f'\x1a'

invalid_characters.py:55:25: PLE2512 [*] Invalid unescaped character SUB, use "\x1A" instead
   |
53 | zwsp_after_multicharacter_grapheme_cluster = f"ಫ್ರಾನ್ಸಿಸ್ಕೊ ​​"
54 | 
55 | nested_fstrings = f'{f'{f''}'}'
   |                         PLE2512
56 | 
57 | # https://github.com/astral-sh/ruff/issues/7455#issuecomment-1741998106
   |
   = help: Replace with escape sequence

ℹ Safe fix
52 52 | zwsp_after_multicharacter_grapheme_cluster = "ಫ್ರಾನ್ಸಿಸ್ಕೊ ​​"
53 53 | zwsp_after_multicharacter_grapheme_cluster = f"ಫ್ರಾನ್ಸಿಸ್ಕೊ ​​"
54 54 | 
55    |-nested_fstrings = f'{f'{f''}'}'
   55 |+nested_fstrings = f'{f'\x1A{f''}'}'
56 56 | 
57 57 | # https://github.com/astral-sh/ruff/issues/7455#issuecomment-1741998106
58 58 | x = f"""}}ab"""

invalid_characters.py:58:12: PLE2512 [*] Invalid unescaped character SUB, use "\x1A" instead
   |
57 | # https://github.com/astral-sh/ruff/issues/7455#issuecomment-1741998106
58 | x = f"""}}ab"""
   |             PLE2512
59 | # https://github.com/astral-sh/ruff/issues/7455#issuecomment-1741998256
60 | x = f"""}}ab"""
   |
   = help: Replace with escape sequence

ℹ Safe fix
55 55 | nested_fstrings = f'{f'{f''}'}'
56 56 | 
57 57 | # https://github.com/astral-sh/ruff/issues/7455#issuecomment-1741998106
58    |-x = f"""}}ab"""
   58 |+x = f"""}}a\x1Ab"""
59 59 | # https://github.com/astral-sh/ruff/issues/7455#issuecomment-1741998256
60 60 | x = f"""}}ab"""


