Wrong type inferred for union containing restricted type variable #2534
Labels
bug
mypy got something wrong
false-positive
mypy gave an error on correct code
priority-1-normal
topic-union-types
The error is incorrect--
f(g_b)
should be valid.Swapping
A
andB
in the definition ofAB
results in an error on thef(g_a)
call instead.I'm not sure this title clearly describes the issue; improvements welcome.
The text was updated successfully, but these errors were encountered: