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.
The text was updated successfully, but these errors were encountered:
elazarg
changed the title
Error
Error initializing Union of Lists with an empty list
Sep 21, 2016
Doesn't sound like a very important issue, the example has questionable value. (I'm not saying it's not a bug -- just that I don't think it's urgent to fix it.)
The following test case
Results in
This came up during PR #2154, but I think is an independent issue.
The text was updated successfully, but these errors were encountered: