You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[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.