---
source: crates/ruff_linter/src/rules/flake8_quotes/mod.rs
---
Q002 Double quote docstring found but single quotes preferred
 --> docstring_doubles_mixed_quotes_class_var_1.py:2:5
  |
1 | class SingleLineDocstrings():
2 |     ""'Start with empty string' ' and lint docstring safely'
  |     ^^
3 |     """ Not a docstring """
  |
help: Replace double quotes docstring with single quotes

Q002 Double quote docstring found but single quotes preferred
 --> docstring_doubles_mixed_quotes_class_var_1.py:6:9
  |
5 |     def foo(self, bar="""not a docstring"""):
6 |         ""'Start with empty string' ' and lint docstring safely'
  |         ^^
7 |         pass
  |
help: Replace double quotes docstring with single quotes

Q002 Double quote docstring found but single quotes preferred
 --> docstring_doubles_mixed_quotes_class_var_1.py:9:29
  |
7 |         pass
8 |
9 |     class Nested(foo()[:]): ""'Start with empty string' ' and lint docstring safely'; pass
  |                             ^^
  |
help: Replace double quotes docstring with single quotes
