---
source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs
snapshot_kind: text
---
PYI048.pyi:8:5: PYI048 Function body must contain exactly one statement
   |
 6 |     """oof"""  # OK
 7 | 
 8 | def oof():  # ERROR PYI048
   |     ^^^ PYI048
 9 |     """oof"""
10 |     print("foo")
   |

PYI048.pyi:12:5: PYI048 Function body must contain exactly one statement
   |
10 |     print("foo")
11 | 
12 | def foo():  # ERROR PYI048
   |     ^^^ PYI048
13 |     """foo"""
14 |     print("foo")
   |

PYI048.pyi:17:5: PYI048 Function body must contain exactly one statement
   |
15 |     print("foo")
16 | 
17 | def buzz():  # ERROR PYI048
   |     ^^^^ PYI048
18 |     print("fizz")
19 |     print("buzz")
   |
