.. _redundant-typehint-argument: redundant-typehint-argument / R6006 =================================== **Message emitted:** ``Type `%s` is used more than once in union type annotation. Remove redundant typehints.`` **Description:** *Duplicated type arguments will be skipped by `mypy` tool, therefore should be removed to avoid confusion.* **Problematic code:** .. literalinclude:: /data/messages/r/redundant-typehint-argument/bad.py :language: python **Correct code:** .. literalinclude:: /data/messages/r/redundant-typehint-argument/good.py :language: python **Configuration file:** .. literalinclude:: /data/messages/r/redundant-typehint-argument/pylintrc :language: ini .. note:: This message is emitted by the optional :ref:`'typing'` checker, which requires the ``pylint.extensions.typing`` plugin to be loaded. Created by the `typing `__ checker.