.. _overridden-final-method:

overridden-final-method / W0239
===============================

**Message emitted:**

Method %r overrides a method decorated with typing.final which is defined in class %r

**Description:**

*Used when a method decorated with typing.final has been overridden.*

**Problematic code:**

.. literalinclude:: /data/messages/o/overridden-final-method/bad.py
   :language: python

**Correct code:**

.. literalinclude:: /data/messages/o/overridden-final-method/good.py
   :language: python

**Additional details:**

The message can't be emitted when using Python < 3.8.

**Related links:**

- `PEP 591 <https://peps.python.org/pep-0591/>`_

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