Derived from the Pylint linter.
What it does#
__init__ methods that are turned into generators by the
yield from expressions.
Why is this bad?#
__init__ method is the constructor for a given Python class,
responsible for initializing, rather than creating, new objects.
__init__ method has to return
None. By including a
yield from expression in an
__init__, the method will return a
generator object when called at runtime, resulting in a runtime error.