-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Make unnecessary-lambda
an always-unsafe fix
#10668
Conversation
d4fee7d
to
4b37aa5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess we could mark it as safe if we inspected the two functions and determined that they had exactly the same signatures (including the argument names). But that would be a more involved change — this looks good for now!
|
code | total | + violation | - violation | + fix | - fix |
---|---|---|---|---|---|
PLW0108 | 244 | 72 | 0 | 0 | 172 |
PT014 | 6 | 0 | 6 | 0 | 0 |
Yeah I thought the same thing. Kind of a bummer but oh well. |
Summary
See the linked issue and comment for more.
Closes #10663.