---
source: crates/ruff/src/rules/flake8_pyi/mod.rs
---
PYI021.pyi:1:1: PYI021 Docstrings should not be included in stubs
  |
1 | """foo"""  # ERROR PYI021
  | ^^^^^^^^^ PYI021
2 | 
3 | def foo():
  |

PYI021.pyi:4:5: PYI021 Docstrings should not be included in stubs
  |
4 | def foo():
5 |     """foo"""  # ERROR PYI021
  |     ^^^^^^^^^ PYI021
6 | 
7 | class Bar:
  |

PYI021.pyi:7:5: PYI021 Docstrings should not be included in stubs
   |
 7 | class Bar:
 8 |     """bar"""  # ERROR PYI021
   |     ^^^^^^^^^ PYI021
 9 | 
10 | def bar():
   |


