---
source: crates/ruff_linter/src/rules/pylint/mod.rs
---
yield_in_init.py:9:9: PLE0100 `__init__` method is a generator
  |
7 | class A:
8 |     def __init__(self):
9 |         yield
  |         ^^^^^ PLE0100
  |

yield_in_init.py:14:9: PLE0100 `__init__` method is a generator
   |
12 | class B:
13 |     def __init__(self):
14 |         yield from self.gen()
   |         ^^^^^^^^^^^^^^^^^^^^^ PLE0100
15 | 
16 |     def gen(self):
   |


