.. _consider-using-alias:

consider-using-alias / R6002
============================

**Message emitted:**

``'%s' will be deprecated with PY39, consider using '%s' instead%s``

**Description:**

*Only emitted if 'runtime-typing=no' and a deprecated typing alias is used in a type annotation context in Python 3.7 or 3.8.*

**Problematic code:**

.. literalinclude:: /data/messages/c/consider-using-alias/bad.py
   :language: python

**Correct code:**

.. literalinclude:: /data/messages/c/consider-using-alias/good.py
   :language: python

**Configuration file:**

.. literalinclude:: /data/messages/c/consider-using-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.