---
source: crates/ruff_linter/src/rules/pyflakes/mod.rs
---
F704.py:6:5: F704 `yield` statement outside of a function
  |
5 | class Foo:
6 |     yield 2
  |     ^^^^^^^ F704
  |

F704.py:9:1: F704 `yield` statement outside of a function
   |
 9 | yield 3
   | ^^^^^^^ F704
10 | yield from 3
11 | await f()
   |

F704.py:10:1: F704 `yield from` statement outside of a function
   |
 9 | yield 3
10 | yield from 3
   | ^^^^^^^^^^^^ F704
11 | await f()
   |

F704.py:11:1: F704 `await` statement outside of a function
   |
 9 | yield 3
10 | yield from 3
11 | await f()
   | ^^^^^^^^^ F704
   |


