λ cat test.py
from typing import TypeVar
T = TypeVar("T", int, float)
def f(x: T = 0): ...
λ mypy test.py --no-incremental
test.py:3: error: Incompatible default for parameter "x" (default has type "int", parameter has type "T") [assignment]
Found 1 error in 1 file (checked 1 source file)
Bisects to #21119