Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extended reportUnnecessaryComparison to cover more cases involving … #9070

Merged
merged 1 commit into from
Sep 24, 2024

Conversation

erictraut
Copy link
Collaborator

is and is not operators. This addresses #9068.

Copy link
Contributor

Diff from mypy_primer, showing the effect of this PR on open source code:

pywin32 (https://github.com/mhammond/pywin32)
-   /tmp/mypy_primer/projects/pywin32/Pythonwin/pywin/debugger/debugger.py:35:38 - warning: Condition will always evaluate to True since the types "Never" and "None" have no overlap (reportUnnecessaryComparison)
-   /tmp/mypy_primer/projects/pywin32/Pythonwin/pywin/scintilla/view.py:657:50 - warning: Condition will always evaluate to True since the types "Never" and "None" have no overlap (reportUnnecessaryComparison)
- 5 errors, 479 warnings, 1 information 
+ 5 errors, 477 warnings, 1 information 

@erictraut erictraut merged commit ef263af into main Sep 24, 2024
18 checks passed
@erictraut erictraut deleted the issue-9068-2 branch September 24, 2024 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant