---
source: crates/ruff_linter/src/rules/pylint/mod.rs
---
PLC0132 `TypeVar` name `T` does not match assigned variable name `X`
 --> type_param_name_mismatch.py:5:5
  |
3 | # Errors.
4 |
5 | X = TypeVar("T")
  |     ^^^^^^^^^^^^
6 | X = TypeVar(name="T")
  |

PLC0132 `TypeVar` name `T` does not match assigned variable name `X`
 --> type_param_name_mismatch.py:6:5
  |
5 | X = TypeVar("T")
6 | X = TypeVar(name="T")
  |     ^^^^^^^^^^^^^^^^^
7 |
8 | Y = ParamSpec("T")
  |

PLC0132 `ParamSpec` name `T` does not match assigned variable name `Y`
 --> type_param_name_mismatch.py:8:5
  |
6 | X = TypeVar(name="T")
7 |
8 | Y = ParamSpec("T")
  |     ^^^^^^^^^^^^^^
9 | Y = ParamSpec(name="T")
  |

PLC0132 `ParamSpec` name `T` does not match assigned variable name `Y`
  --> type_param_name_mismatch.py:9:5
   |
 8 | Y = ParamSpec("T")
 9 | Y = ParamSpec(name="T")
   |     ^^^^^^^^^^^^^^^^^^^
10 |
11 | Z = NewType("T", int)
   |

PLC0132 `NewType` name `T` does not match assigned variable name `Z`
  --> type_param_name_mismatch.py:11:5
   |
 9 | Y = ParamSpec(name="T")
10 |
11 | Z = NewType("T", int)
   |     ^^^^^^^^^^^^^^^^^
12 | Z = NewType(name="T", tp=int)
   |

PLC0132 `NewType` name `T` does not match assigned variable name `Z`
  --> type_param_name_mismatch.py:12:5
   |
11 | Z = NewType("T", int)
12 | Z = NewType(name="T", tp=int)
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^
13 |
14 | Ws = TypeVarTuple("Ts")
   |

PLC0132 `TypeVarTuple` name `Ts` does not match assigned variable name `Ws`
  --> type_param_name_mismatch.py:14:6
   |
12 | Z = NewType(name="T", tp=int)
13 |
14 | Ws = TypeVarTuple("Ts")
   |      ^^^^^^^^^^^^^^^^^^
15 | Ws = TypeVarTuple(name="Ts")
   |

PLC0132 `TypeVarTuple` name `Ts` does not match assigned variable name `Ws`
  --> type_param_name_mismatch.py:15:6
   |
14 | Ws = TypeVarTuple("Ts")
15 | Ws = TypeVarTuple(name="Ts")
   |      ^^^^^^^^^^^^^^^^^^^^^^^
16 |
17 | # Non-errors.
   |
