---
source: crates/ruff_linter/src/rules/pydocstyle/mod.rs
snapshot_kind: text
---
sphinx.py:13:5: D412 [*] No blank lines allowed between a section header and its content ("Example")
   |
11 | def func():
12 |     """
13 |     Example:
   |     ^^^^^^^ D412
   |
   = help: Remove blank line(s)

ℹ Safe fix
12 12 |     """
13 13 |     Example:
14 14 | 
15    |-
16 15 |     .. code-block:: python
17 16 | 
18 17 |         import foo

sphinx.py:24:5: D412 [*] No blank lines allowed between a section header and its content ("Example")
   |
22 | def func():
23 |     """
24 |     Example:
   |     ^^^^^^^ D412
   |
   = help: Remove blank line(s)

ℹ Safe fix
23 23 |     """
24 24 |     Example:
25 25 | 
26    |-
27    |-
28 26 |     .. code-block:: python
29 27 | 
30 28 |         import foo

sphinx.py:47:5: D412 [*] No blank lines allowed between a section header and its content ("Example")
   |
45 | def func():
46 |     """
47 |     Example
   |     ^^^^^^^ D412
48 |     -------
   |
   = help: Remove blank line(s)

ℹ Safe fix
47 47 |     Example
48 48 |     -------
49 49 | 
50    |-
51 50 |     .. code-block:: python
52 51 | 
53 52 |         import foo

sphinx.py:59:5: D412 [*] No blank lines allowed between a section header and its content ("Example")
   |
57 | def func():
58 |     """
59 |     Example
   |     ^^^^^^^ D412
60 |     -------
   |
   = help: Remove blank line(s)

ℹ Safe fix
59 59 |     Example
60 60 |     -------
61 61 | 
62    |-
63    |-
64 62 |     .. code-block:: python
65 63 | 
66 64 |         import foo
