Using a class inherited from tuple as a bound in TypeVar #7427
Labels
bug
mypy got something wrong
false-positive
mypy gave an error on correct code
good-first-issue
priority-1-normal
topic-type-variables
I think I've encountered mypy bug. Here's the code I'm trying to check with mypy (sorry if it's big, I think additional code helps debugging):
no errors
python 3.7.3, mypy both
0.720
and0.730+dev.811c201551ecb151f83e982da3ad8f46fa2ebe84
no flags
I've been able to track the error till this line
mypy/checkmember.py#L261
. In first caseupper_bound
istest.B
, but in second it'sTuple[, fallback=test.C]
and fallback is not checked. I'm not sure how to proceed from here though because it's probably not safe to always check a fallback.The text was updated successfully, but these errors were encountered: