.. _useless-parent-delegation:

useless-parent-delegation / W0246
=================================

**Message emitted:**

Useless parent or super() delegation in method %r

**Description:**

*Used whenever we can detect that an overridden method is useless, relying on parent or super() delegation to do the same thing as another method from the MRO.*

**Problematic code:**

.. literalinclude:: /data/messages/u/useless-parent-delegation/bad.py
   :language: python

**Correct code:**

.. literalinclude:: /data/messages/u/useless-parent-delegation/good.py
   :language: python


**Related links:**

- `Stackoverflow explanation for 'useless-super-delegation' <https://stackoverflow.com/a/51030674/2519059>`_

Created by the `classes <https://github.com/PyCQA/pylint/blob/main/pylint/checkers/classes/class_checker.py>`__ checker.