---
source: crates/ruff_linter/src/rules/flake8_quotes/mod.rs
---
Q000 [*] Double quotes found but single quotes preferred
 --> doubles_implicit.py:2:5
  |
1 | x = (
2 |     "This"
  |     ^^^^^^
3 |     "is"
4 |     "not"
  |
help: Replace double quotes with single quotes
  |
1 | x = (
  -     "This"
2 +     'This'
3 |     "is"
  |

Q000 [*] Double quotes found but single quotes preferred
 --> doubles_implicit.py:3:5
  |
1 | x = (
2 |     "This"
3 |     "is"
  |     ^^^^
4 |     "not"
5 | )
  |
help: Replace double quotes with single quotes
  |
2 |     "This"
  -     "is"
3 +     'is'
4 |     "not"
  |

Q000 [*] Double quotes found but single quotes preferred
 --> doubles_implicit.py:4:5
  |
2 |     "This"
3 |     "is"
4 |     "not"
  |     ^^^^^
5 | )
  |
help: Replace double quotes with single quotes
  |
3 |     "is"
  -     "not"
4 +     'not'
5 | )
  |

Q000 [*] Double quotes found but single quotes preferred
  --> doubles_implicit.py:8:5
   |
 7 | x = (
 8 |     "This" \
   |     ^^^^^^
 9 |     "is" \
10 |     "not"
   |
help: Replace double quotes with single quotes
  |
7 | x = (
  -     "This" \
8 +     'This' \
9 |     "is" \
  |

Q000 [*] Double quotes found but single quotes preferred
  --> doubles_implicit.py:9:5
   |
 7 | x = (
 8 |     "This" \
 9 |     "is" \
   |     ^^^^
10 |     "not"
11 | )
   |
help: Replace double quotes with single quotes
   |
8  |     "This" \
   -     "is" \
9  +     'is' \
10 |     "not"
   |

Q000 [*] Double quotes found but single quotes preferred
  --> doubles_implicit.py:10:5
   |
 8 |     "This" \
 9 |     "is" \
10 |     "not"
   |     ^^^^^
11 | )
   |
help: Replace double quotes with single quotes
   |
9  |     "is" \
   -     "not"
10 +     'not'
11 | )
   |

Q000 [*] Double quotes found but single quotes preferred
  --> doubles_implicit.py:27:1
   |
25 | if True:
26 |     "This can use 'double' quotes"
27 | "But this needs to be changed"
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
help: Replace double quotes with single quotes
   |
26 |     "This can use 'double' quotes"
   - "But this needs to be changed"
27 + 'But this needs to be changed'
   |
