---
source: crates/ruff_linter/src/rules/pydocstyle/mod.rs
---
D400.py:2:5: D400 [*] First line should end with a period
  |
1 | def f():
2 |     "Here's a line without a period"
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ D400
3 |     ...
  |
  = help: Add period

ℹ Unsafe fix
1 1 | def f():
2   |-    "Here's a line without a period"
  2 |+    "Here's a line without a period."
3 3 |     ...
4 4 | 
5 5 | 

D400.py:7:5: D400 [*] First line should end with a period
  |
6 | def f():
7 |     """Here's a line without a period"""
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ D400
8 |     ...
  |
  = help: Add period

ℹ Unsafe fix
4 4 | 
5 5 | 
6 6 | def f():
7   |-    """Here's a line without a period"""
  7 |+    """Here's a line without a period."""
8 8 |     ...
9 9 | 
10 10 | 

D400.py:12:5: D400 [*] First line should end with a period
   |
11 |   def f():
12 |       """
   |  _____^
13 | |     Here's a line without a period,
14 | |     but here's the next line
15 | |     """
   | |_______^ D400
16 |       ...
   |
   = help: Add period

ℹ Unsafe fix
11 11 | def f():
12 12 |     """
13 13 |     Here's a line without a period,
14    |-    but here's the next line
   14 |+    but here's the next line.
15 15 |     """
16 16 |     ...
17 17 | 

D400.py:20:5: D400 [*] First line should end with a period
   |
19 | def f():
20 |     """Here's a line without a period"""
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ D400
21 |     ...
   |
   = help: Add period

ℹ Unsafe fix
17 17 | 
18 18 | 
19 19 | def f():
20    |-    """Here's a line without a period"""
   20 |+    """Here's a line without a period."""
21 21 |     ...
22 22 | 
23 23 | 

D400.py:25:5: D400 [*] First line should end with a period
   |
24 |   def f():
25 |       """
   |  _____^
26 | |     Here's a line without a period,
27 | |     but here's the next line"""
   | |_______________________________^ D400
28 |       ...
   |
   = help: Add period

ℹ Unsafe fix
24 24 | def f():
25 25 |     """
26 26 |     Here's a line without a period,
27    |-    but here's the next line"""
   27 |+    but here's the next line."""
28 28 |     ...
29 29 | 
30 30 | 

D400.py:32:5: D400 [*] First line should end with a period
   |
31 |   def f():
32 |       """
   |  _____^
33 | |     Here's a line without a period,
34 | |     but here's the next line with trailing space """
   | |____________________________________________________^ D400
35 |       ...
   |
   = help: Add period

ℹ Unsafe fix
31 31 | def f():
32 32 |     """
33 33 |     Here's a line without a period,
34    |-    but here's the next line with trailing space """
   34 |+    but here's the next line with trailing space. """
35 35 |     ...
36 36 | 
37 37 | 

D400.py:39:5: D400 [*] First line should end with a period
   |
38 | def f():
39 |     r"Here's a line without a period"
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ D400
40 |     ...
   |
   = help: Add period

ℹ Unsafe fix
36 36 | 
37 37 | 
38 38 | def f():
39    |-    r"Here's a line without a period"
   39 |+    r"Here's a line without a period."
40 40 |     ...
41 41 | 
42 42 | 

D400.py:44:5: D400 [*] First line should end with a period
   |
43 | def f():
44 |     r"""Here's a line without a period"""
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ D400
45 |     ...
   |
   = help: Add period

ℹ Unsafe fix
41 41 | 
42 42 | 
43 43 | def f():
44    |-    r"""Here's a line without a period"""
   44 |+    r"""Here's a line without a period."""
45 45 |     ...
46 46 | 
47 47 | 

D400.py:49:5: D400 [*] First line should end with a period
   |
48 |   def f():
49 |       r"""
   |  _____^
50 | |     Here's a line without a period,
51 | |     but here's the next line
52 | |     """
   | |_______^ D400
53 |       ...
   |
   = help: Add period

ℹ Unsafe fix
48 48 | def f():
49 49 |     r"""
50 50 |     Here's a line without a period,
51    |-    but here's the next line
   51 |+    but here's the next line.
52 52 |     """
53 53 |     ...
54 54 | 

D400.py:57:5: D400 [*] First line should end with a period
   |
56 | def f():
57 |     r"""Here's a line without a period"""
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ D400
58 |     ...
   |
   = help: Add period

ℹ Unsafe fix
54 54 | 
55 55 | 
56 56 | def f():
57    |-    r"""Here's a line without a period"""
   57 |+    r"""Here's a line without a period."""
58 58 |     ...
59 59 | 
60 60 | 

D400.py:62:5: D400 [*] First line should end with a period
   |
61 |   def f():
62 |       r"""
   |  _____^
63 | |     Here's a line without a period,
64 | |     but here's the next line"""
   | |_______________________________^ D400
65 |       ...
   |
   = help: Add period

ℹ Unsafe fix
61 61 | def f():
62 62 |     r"""
63 63 |     Here's a line without a period,
64    |-    but here's the next line"""
   64 |+    but here's the next line."""
65 65 |     ...
66 66 | 
67 67 | 

D400.py:69:5: D400 [*] First line should end with a period
   |
68 |   def f():
69 |       r"""
   |  _____^
70 | |     Here's a line without a period,
71 | |     but here's the next line with trailing space """
   | |____________________________________________________^ D400
72 |       ...
   |
   = help: Add period

ℹ Unsafe fix
68 68 | def f():
69 69 |     r"""
70 70 |     Here's a line without a period,
71    |-    but here's the next line with trailing space """
   71 |+    but here's the next line with trailing space. """
72 72 |     ...
73 73 | 
74 74 | 

D400.py:97:5: D400 [*] First line should end with a period
    |
 96 |   def f():
 97 |       """
    |  _____^
 98 | |     My example
 99 | |     ==========
100 | | 
101 | |     My example explanation
102 | |     """
    | |_______^ D400
    |
    = help: Add period

ℹ Unsafe fix
95 95 | 
96 96 | def f():
97 97 |     """
98    |-    My example
   98 |+    My example.
99 99 |     ==========
100 100 | 
101 101 |     My example explanation


