Replies: 1 comment
-
Yes, this is by design. The |
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
-
I would expect
_1/_2/_22/_3/_4
to be prompted for errors because the result of comparisons can be statically determined. But actually only_1/_2/_22
are prompted.playground link: https://zzzen.github.io/pyright-ast-viewer/#code/FDCGAIF5wRmAjK4BMwD6MkUtVwDGSAKgE4CuApsACZIBioANgM5VrJKE7jUjUUAzcAIAUASgBcwcOGzhSlaeETQFVGWgDMWKNHhK0AFh0BCPcCA
ref:
Beta Was this translation helpful? Give feedback.
All reactions