.. _non-parent-init-called: non-parent-init-called / W0233 ============================== **Message emitted:** ``__init__ method from a non direct base class %r is called`` **Description:** *Used when an __init__ method is called on a class which is not in the direct ancestors for the analysed class.* **Problematic code:** .. literalinclude:: /data/messages/n/non-parent-init-called/bad.py :language: python **Correct code:** .. literalinclude:: /data/messages/n/non-parent-init-called/good.py :language: python Created by the `classes `__ checker.