Skip to content

How to get typehints for this kind of equality test? #9600

Answered by erictraut
ghsanti asked this question in Q&A
Discussion options

You must be logged in to vote

If you would like pyright to detect condition tests where the operands appear to have no type overlap, you can enable the reportUnnecessaryComparison check. This check is not enabled by default.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ghsanti
Comment options

Answer selected by ghsanti
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants