---
source: crates/ruff/src/rules/pydocstyle/mod.rs
---
D.py:142:5: D202 [*] No blank lines allowed after function docstring (found 1)
    |
142 | @expect('D202: No blank lines allowed after function docstring (found 1)')
143 | def trailing_space():
144 |     """Leading space."""
    |     ^^^^^^^^^^^^^^^^^^^^ D202
145 | 
146 |     pass
    |
    = help: Remove blank line(s) after function docstring

ℹ Suggested fix
140 140 | @expect('D202: No blank lines allowed after function docstring (found 1)')
141 141 | def trailing_space():
142 142 |     """Leading space."""
143     |-
144 143 |     pass
145 144 | 
146 145 | 

D.py:151:5: D202 [*] No blank lines allowed after function docstring (found 1)
    |
151 | def trailing_and_leading_space():
152 | 
153 |     """Trailing and leading space."""
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ D202
154 | 
155 |     pass
    |
    = help: Remove blank line(s) after function docstring

ℹ Suggested fix
149 149 | def trailing_and_leading_space():
150 150 | 
151 151 |     """Trailing and leading space."""
152     |-
153 152 |     pass
154 153 | 
155 154 | 

D.py:555:5: D202 [*] No blank lines allowed after function docstring (found 1)
    |
555 |   @expect('D213: Multi-line docstring summary should start at the second line')
556 |   def multiline_trailing_space():
557 |       """Leading space.
    |  _____^
558 | | 
559 | |     More content.
560 | |     """
    | |_______^ D202
561 |   
562 |       pass
    |
    = help: Remove blank line(s) after function docstring

ℹ Suggested fix
556 556 | 
557 557 |     More content.
558 558 |     """
559     |-
560 559 |     pass
561 560 | 
562 561 | 

D.py:568:5: D202 [*] No blank lines allowed after function docstring (found 1)
    |
568 |   def multiline_trailing_and_leading_space():
569 |   
570 |       """Trailing and leading space.
    |  _____^
571 | | 
572 | |     More content.
573 | |     """
    | |_______^ D202
574 |   
575 |       pass
    |
    = help: Remove blank line(s) after function docstring

ℹ Suggested fix
569 569 | 
570 570 |     More content.
571 571 |     """
572     |-
573 572 |     pass
574 573 | 
575 574 | 


