---
source: crates/ruff_linter/src/rules/pydocstyle/mod.rs
---
sections.py:32:5: D406 [*] Section name should end with a newline ("Returns")
   |
30 |     """Toggle the gizmo.
31 | 
32 |     Returns:
   |     ^^^^^^^ D406
33 |     -------
34 |     A value of some sort.
   |
   = help: Add newline after "Returns"

ℹ Safe fix
29 29 | def superfluous_suffix():  # noqa: D416
30 30 |     """Toggle the gizmo.
31 31 | 
32    |-    Returns:
   32 |+    Returns
33 33 |     -------
34 34 |     A value of some sort.
35 35 | 

sections.py:227:5: D406 [*] Section name should end with a newline ("Raises")
    |
225 |     ------
226 |     Many many wonderful things.
227 |     Raises:
    |     ^^^^^^ D406
228 |     My attention.
    |
    = help: Add newline after "Raises"

ℹ Safe fix
224 224 |     Returns
225 225 |     ------
226 226 |     Many many wonderful things.
227     |-    Raises:
    227 |+    Raises
228 228 |     My attention.
229 229 | 
230 230 |     """

sections.py:590:5: D406 [*] Section name should end with a newline ("Parameters")
    |
588 |     """Test that lower case subsection header is valid even if it has the same name as section kind.
589 | 
590 |     Parameters:
    |     ^^^^^^^^^^ D406
591 |     ----------
592 |     parameters:
    |
    = help: Add newline after "Parameters"

ℹ Safe fix
587 587 | def test_lowercase_sub_section_header_should_be_valid(parameters: list[str], value: int):  # noqa: D213
588 588 |     """Test that lower case subsection header is valid even if it has the same name as section kind.
589 589 | 
590     |-    Parameters:
    590 |+    Parameters
591 591 |     ----------
592 592 |     parameters:
593 593 |         A list of string parameters
