Bug Report
If we creates multiple generic parents with the same generic attribute, mypy raises an error about incompatible definition
To Reproduce
fromtypingimportGeneric, TypeVarT=TypeVar("T")
classA(Generic[T]):
x: TclassB(Generic[T]):
x: TclassC(A[str], B[str]):
passRaises error: Definition of "x" in base class "A" is incompatible with definition in base class "B" [misc]
Expected Behavior
The example should has no error, like in the final types case
classA:
x: strclassB:
x: strclassC(A, B):
pass
Actual Behavior
Raises an error
Your Environment
mypy==1.14.0
Bug Report
If we creates multiple generic parents with the same generic attribute, mypy raises an error about incompatible definition
To Reproduce
Raises
error: Definition of "x" in base class "A" is incompatible with definition in base class "B" [misc]Expected Behavior
The example should has no error, like in the final types case
Actual Behavior
Raises an error
Your Environment
mypy==1.14.0