.. _typevar-name-mismatch:

typevar-name-mismatch / C0132
=============================

**Message emitted:**

TypeVar name "%s" does not match assigned variable name "%s"

**Description:**

*Emitted when a TypeVar is assigned to a variable that does not match its name argument.*

**Problematic code:**

.. literalinclude:: /data/messages/t/typevar-name-mismatch/bad.py
   :language: python

**Correct code:**

.. literalinclude:: /data/messages/t/typevar-name-mismatch/good.py
   :language: python



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