.. _useless-return: useless-return / R1711 ====================== **Message emitted:** ``Useless return at end of function or method`` **Description:** *Emitted when a single "return" or "return None" statement is found at the end of function or method definition. This statement can safely be removed because Python will implicitly return None* **Problematic code:** .. literalinclude:: /data/messages/u/useless-return/bad.py :language: python **Correct code:** .. literalinclude:: /data/messages/u/useless-return/good.py :language: python Created by the `refactoring `__ checker.