---
source: crates/ruff_linter/src/rules/pydoclint/mod.rs
---
DOC403 Docstring has a "Yields" section but the function doesn't yield anything
  --> DOC403_numpy.py:16:5
   |
14 |   # DOC403
15 |   def foo(num: int) -> str:
16 | /     """
17 | |     Do something
18 | |
19 | |     Parameters
20 | |     ----------
21 | |     num : int
22 | |         A number
23 | |
24 | |     Yields
25 | |     -------
26 | |     str
27 | |         A string
28 | |     """
   | |_______^
29 |       print('test')
   |
help: Remove the "Yields" section

DOC403 Docstring has a "Yields" section but the function doesn't yield anything
  --> DOC403_numpy.py:36:9
   |
34 |       # DOC403
35 |       def foo(self) -> str:
36 | /         """
37 | |         Do something
38 | |
39 | |         Parameters
40 | |         ----------
41 | |         num : int
42 | |             A number
43 | |
44 | |         Yields
45 | |         -------
46 | |         str
47 | |             A string
48 | |         """
   | |___________^
49 |           print('test')
   |
help: Remove the "Yields" section
