.. _function-redefined:

function-redefined / E0102
==========================

**Message emitted:**

%s already defined line %s

**Description:**

*Used when a function / class / method is redefined.*

**Problematic code:**

.. literalinclude:: /data/messages/f/function-redefined/bad.py
   :language: python

**Correct code:**

.. literalinclude:: /data/messages/f/function-redefined/good.py
   :language: python



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