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
Uh oh!
There was an error while loading. Please reload this page.
-
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 Trueandfoo is Falsedo not trigger an error in pyright (it does in mypy).I think that
foo is Truewill always evaluate to False (but maybe I'm missing an edge case?)Beta Was this translation helpful? Give feedback.
All reactions