---
source: crates/ruff_linter/src/rules/pydocstyle/mod.rs
---
D210 [*] No whitespaces allowed surrounding docstring text
   --> D.py:288:5
    |
286 | @expect('D210: No whitespaces allowed surrounding docstring text')
287 | def endswith():
288 |     """Whitespace at the end. """
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
help: Trim surrounding whitespace
    |
287 | def endswith():
    -     """Whitespace at the end. """
288 +     """Whitespace at the end."""
289 |
    |

D210 [*] No whitespaces allowed surrounding docstring text
   --> D.py:293:5
    |
291 | @expect('D210: No whitespaces allowed surrounding docstring text')
292 | def around():
293 |     """ Whitespace at everywhere. """
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
help: Trim surrounding whitespace
    |
292 | def around():
    -     """ Whitespace at everywhere. """
293 +     """Whitespace at everywhere."""
294 |
    |

D210 [*] No whitespaces allowed surrounding docstring text
   --> D.py:299:5
    |
297 |   @expect('D213: Multi-line docstring summary should start at the second line')
298 |   def multiline():
299 | /     """ Whitespace at the beginning.
300 | |
301 | |     This is the end.
302 | |     """
    | |_______^
    |
help: Trim surrounding whitespace
    |
298 | def multiline():
    -     """ Whitespace at the beginning.
299 +     """Whitespace at the beginning.
300 |
    |

D210 No whitespaces allowed surrounding docstring text
   --> D.py:581:5
    |
579 |         "or exclamation point (not '\"')")
580 | def endswith_quote():
581 |     """Whitespace at the end, but also a quote" """
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
help: Trim surrounding whitespace
