.. _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.*


**Correct code:**

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

**Additional details:**

You can help us make the doc better `by contributing <https://github.com/PyCQA/pylint/issues/5953>`_ !



.. 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.