---
source: crates/ruff_linter/src/rules/pycodestyle/mod.rs
---
W291.py:1:23: W291 [*] Trailing whitespace
  |
1 | '''trailing whitespace 
  |                       ^ W291
2 | inside a multiline string'''
  |
  = help: Remove trailing whitespace

ℹ Unsafe fix
1   |-'''trailing whitespace 
  1 |+'''trailing whitespace
2 2 | inside a multiline string'''
3 3 | 
4 4 | f'''trailing whitespace 

W291.py:4:24: W291 [*] Trailing whitespace
  |
2 | inside a multiline string'''
3 | 
4 | f'''trailing whitespace 
  |                        ^ W291
5 | inside a multiline f-string'''
  |
  = help: Remove trailing whitespace

ℹ Unsafe fix
1 1 | '''trailing whitespace 
2 2 | inside a multiline string'''
3 3 | 
4   |-f'''trailing whitespace 
  4 |+f'''trailing whitespace
5 5 | inside a multiline f-string'''
6 6 | 
7 7 | # Trailing whitespace after `{`

W291.py:8:8: W291 [*] Trailing whitespace
   |
 7 | # Trailing whitespace after `{`
 8 | f'abc { 
   |        ^ W291
 9 |     1 + 2
10 | }'
   |
   = help: Remove trailing whitespace

ℹ Safe fix
5 5 | inside a multiline f-string'''
6 6 | 
7 7 | # Trailing whitespace after `{`
8   |-f'abc { 
  8 |+f'abc {
9 9 |     1 + 2
10 10 | }'
11 11 | 

W291.py:14:10: W291 [*] Trailing whitespace
   |
12 | # Trailing whitespace after `2`
13 | f'abc {
14 |     1 + 2 
   |          ^ W291
15 | }'
   |
   = help: Remove trailing whitespace

ℹ Safe fix
11 11 | 
12 12 | # Trailing whitespace after `2`
13 13 | f'abc {
14    |-    1 + 2 
   14 |+    1 + 2
15 15 | }'


