Adding third ABC
type to a loop causes false positive type error
#16509
Labels
ABC
type to a loop causes false positive type error
#16509
Bug Report
Adding a third
ABC
to a list of types in afor
loop causes a Mypy type checking false positive error.In the code below, if you remove the second
C2
there is no error, but adding a thirdABC
to the iteration for some reason triggers this error.To Reproduce
Expected Behavior
No type check error.
Actual Behavior
Produces false positive type check error:
Your Environment
mypy.ini
(and other config files):The text was updated successfully, but these errors were encountered: