---
source: crates/ruff_linter/src/rules/flake8_quotes/mod.rs
---
Q001 [*] Double quote multiline found but single quotes preferred
 --> docstring_doubles_class.py:3:5
  |
1 | class SingleLineDocstrings():
2 |     """ Double quotes single line class docstring """
3 |     """ Not a docstring """
  |     ^^^^^^^^^^^^^^^^^^^^^^^
4 |
5 |     def foo(self, bar="""not a docstring"""):
  |
help: Replace double multiline quotes with single quotes
  |
2 |     """ Double quotes single line class docstring """
  -     """ Not a docstring """
3 +     ''' Not a docstring '''
4 |
  |

Q001 [*] Double quote multiline found but single quotes preferred
 --> docstring_doubles_class.py:5:23
  |
3 |     """ Not a docstring """
4 |
5 |     def foo(self, bar="""not a docstring"""):
  |                       ^^^^^^^^^^^^^^^^^^^^^
6 |         """ Double quotes single line method docstring"""
7 |         pass
  |
help: Replace double multiline quotes with single quotes
  |
4 |
  -     def foo(self, bar="""not a docstring"""):
5 +     def foo(self, bar='''not a docstring'''):
6 |         """ Double quotes single line method docstring"""
  |
