.. _deprecated-decorator:

deprecated-decorator / W4905
============================

**Message emitted:**

``Using deprecated decorator %s()``

**Description:**

*The decorator is marked as deprecated and will be removed in the future.*

**Problematic code:**

.. literalinclude:: /data/messages/d/deprecated-decorator/bad.py
   :language: python

**Correct code:**

.. literalinclude:: /data/messages/d/deprecated-decorator/good.py
   :language: python

**Configuration file:**

.. literalinclude:: /data/messages/d/deprecated-decorator/pylintrc
    :language: ini

**Additional details:**

The actual replacement need to be studied on a case by case basis
by reading the deprecation warning or the release notes.



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