---
source: crates/ruff_linter/src/rules/flake8_quotes/mod.rs
---
Q002 [*] Single quote docstring found but double quotes preferred
 --> docstring_singles.py:1:1
  |
1 | / '''
2 | | Single quotes multiline module docstring
3 | | '''
  | |___^
4 |
5 |   '''
  |
help: Replace single quotes docstring with double quotes
  |
  - '''
1 + """
2 | Single quotes multiline module docstring
  - '''
3 + """
4 |
  |

Q002 [*] Single quote docstring found but double quotes preferred
  --> docstring_singles.py:14:5
   |
12 |       class params \t not a docstring
13 |   ''')):
14 | /     '''
15 | |     Single quotes multiline class docstring
16 | |     '''
   | |_______^
17 |
18 |       '''
   |
help: Replace single quotes docstring with double quotes
   |
13 | ''')):
   -     '''
14 +     """
15 |     Single quotes multiline class docstring
   -     '''
16 +     """
17 |
   |

Q002 [*] Single quote docstring found but double quotes preferred
  --> docstring_singles.py:26:9
   |
24 |           definitely not a docstring''',
25 |           val=l[Cls():3]):
26 | /         '''
27 | |         Single quotes multiline function docstring
28 | |         '''
   | |___________^
29 |
30 |           some_expression = 'hello world'
   |
help: Replace single quotes docstring with double quotes
   |
25 |         val=l[Cls():3]):
   -         '''
26 +         """
27 |         Single quotes multiline function docstring
   -         '''
28 +         """
29 |
   |
