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

Added exemption to the reportUnnecessaryComparison rule for simple … #9582

Merged
merged 1 commit into from
Dec 13, 2024

Conversation

erictraut
Copy link
Collaborator

…wildcard patterns in a case clause. This addresses #4706.

…wildcard patterns in a `case` clause. This addresses #4706.
Copy link
Contributor

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

steam.py (https://github.com/Gobot1234/steam.py)
-   /tmp/mypy_primer/projects/steam.py/steam/state.py:3022:18 - error: Pattern will never be matched for subject type "Never" (reportUnnecessaryComparison)
- 8446 errors, 94 warnings, 0 informations 
+ 8445 errors, 94 warnings, 0 informations 

AutoSplit (https://github.com/Toufool/AutoSplit)
+   /tmp/mypy_primer/projects/AutoSplit/src/hotkeys.py:71:36 - error: Unnecessary "# pyright: ignore" rule: "reportUnnecessaryComparison" (reportUnnecessaryTypeIgnoreComment)
- 523 errors, 36 warnings, 7 informations 
+ 524 errors, 36 warnings, 7 informations 

@erictraut erictraut merged commit 9041f88 into main Dec 13, 2024
18 checks passed
@erictraut erictraut deleted the issue-4706 branch December 13, 2024 23:19
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