.. _unnecessary-dunder-call: unnecessary-dunder-call / C2801 =============================== **Message emitted:** ``Unnecessarily calls dunder method %s. %s.`` **Description:** *Used when a dunder method is manually called instead of using the corresponding function/method/operator.* **Problematic code:** .. literalinclude:: /data/messages/u/unnecessary-dunder-call/bad.py :language: python **Correct code:** .. literalinclude:: /data/messages/u/unnecessary-dunder-call/good.py :language: python Created by the `unnecessary-dunder-call `__ checker.