incompatible type in the list not inspected
PyCharm 2020.1.3
I want mix1 get same inspection as mix2. No ideas why PyCharm didn't show.
However, mypy reported the issue.
xx.py:13: error: List item 1 has incompatible type "int"; expected "Union[A, B]"
xx.py:15: error: List item 0 has incompatible type "int"; expected "Union[A, B]"
请先登录再写评论。
Likely a bug, could you please submit a ticket to https://youtrack.jetbrains.com/issues with code snippet (as text)
Thanks Andrey, I opened https://youtrack.jetbrains.com/issue/PY-43521.