.. _deprecated-typing-alias:

deprecated-typing-alias / W6001
===============================

**Message emitted:**

``'%s' is deprecated, use '%s' instead``

**Description:**

*Emitted when a deprecated typing alias is used.*

**Problematic code:**

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

**Correct code:**

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

**Configuration file:**

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





.. note::
  This message is emitted by the optional :ref:`'typing'<pylint.extensions.typing>`
   checker which requires the ``pylint.extensions.typing`` plugin to be loaded.

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