---
source: crates/ruff_linter/src/rules/pydocstyle/mod.rs
---
D301 [*] Use `r"""` if any backslashes in a docstring
   --> D.py:333:5
    |
331 | @expect('D301: Use r""" if any backslashes in a docstring')
332 | def double_quotes_backslash():
333 |     """Sum\\mary."""
    |     ^^^^^^^^^^^^^^^^
    |
help: Add `r` prefix
    |
332 | def double_quotes_backslash():
    -     """Sum\\mary."""
333 +     r"""Sum\\mary."""
334 |
    |
note: This is an unsafe fix and may change runtime behavior
