Replies: 1 comment 1 reply
-
You will get another diagnostic message from Pyright in this case, is it not enough? It's not enabled by default though. "Condition will always evaluate to False since the types "Literal['A', 'B']" and "Literal['C']" have no overlap" |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Could pyright report unreachable code like the following inside the if clause?
I understand that the code can be reachable at runtime, but maybe pyright could give an info message reporting this case.
Beta Was this translation helpful? Give feedback.
All reactions