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]"

 

2 comments
Comment actions Permalink

Likely a bug, could you please submit a ticket to https://youtrack.jetbrains.com/issues with code snippet (as text)

0

Please sign in to leave a comment.