Closed
Description
The following test case
[case testUnionListInit]
from typing import Union, List
a = [] # type: Union[List[int], List[str]]
[builtins fixtures/list.pyi]
Results in
Expected:
Actual:
main:2: error: Incompatible types in assignment (expression has type List[None], variable has type "Union[List[int], List[str]]") (diff)
This came up during PR #2154, but I think is an independent issue.