---
source: crates/ruff_linter/src/rules/flake8_quotes/mod.rs
snapshot_kind: text
---
singles_would_be_triple_quotes.py:1:5: Q000 Single quotes found but double quotes preferred
  |
1 | s = ''"Start with empty string" ' and lint docstring safely'
  |     ^^ Q000
2 | s = 'Do not'" start with empty string" ' and lint docstring safely'
  |
  = help: Replace single quotes with double quotes

singles_would_be_triple_quotes.py:1:33: Q000 [*] Single quotes found but double quotes preferred
  |
1 | s = ''"Start with empty string" ' and lint docstring safely'
  |                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Q000
2 | s = 'Do not'" start with empty string" ' and lint docstring safely'
  |
  = help: Replace single quotes with double quotes

ℹ Safe fix
1   |-s = ''"Start with empty string" ' and lint docstring safely'
  1 |+s = ''"Start with empty string" " and lint docstring safely"
2 2 | s = 'Do not'" start with empty string" ' and lint docstring safely'

singles_would_be_triple_quotes.py:2:5: Q000 [*] Single quotes found but double quotes preferred
  |
1 | s = ''"Start with empty string" ' and lint docstring safely'
2 | s = 'Do not'" start with empty string" ' and lint docstring safely'
  |     ^^^^^^^^ Q000
  |
  = help: Replace single quotes with double quotes

ℹ Safe fix
1 1 | s = ''"Start with empty string" ' and lint docstring safely'
2   |-s = 'Do not'" start with empty string" ' and lint docstring safely'
  2 |+s = "Do not"" start with empty string" ' and lint docstring safely'

singles_would_be_triple_quotes.py:2:40: Q000 [*] Single quotes found but double quotes preferred
  |
1 | s = ''"Start with empty string" ' and lint docstring safely'
2 | s = 'Do not'" start with empty string" ' and lint docstring safely'
  |                                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Q000
  |
  = help: Replace single quotes with double quotes

ℹ Safe fix
1 1 | s = ''"Start with empty string" ' and lint docstring safely'
2   |-s = 'Do not'" start with empty string" ' and lint docstring safely'
  2 |+s = 'Do not'" start with empty string" " and lint docstring safely"
