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

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