Replies: 1 comment
-
I don't know if I've updated pyright's |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Easier to explain with some example code:
Output of pyright v1.1.381 (strict):
Output of mypy v1.11.2 (strict):
In short:
foo is True
andfoo is False
do not trigger an error in pyright (it does in mypy).I think that
foo is True
will always evaluate to False (but maybe I'm missing an edge case?)Beta Was this translation helpful? Give feedback.
All reactions