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

Autofix PLW0108 unnecessary-lambda (preview) #8618

Closed
Skylion007 opened this issue Nov 11, 2023 · 1 comment · Fixed by #8621
Closed

Autofix PLW0108 unnecessary-lambda (preview) #8618

Skylion007 opened this issue Nov 11, 2023 · 1 comment · Fixed by #8621
Assignees
Labels
fixes Related to suggested fixes for violations

Comments

@Skylion007
Copy link
Contributor

It would be great to add an autofix to #7953 as it's fix is pretty straightforward (just deleting the lambda and calling the function / method directly). The logic / autofix is somewhat similar to PIE807 which already has an autofix.

@Skylion007 Skylion007 changed the title Autofix W0108 unnecessary-lambda (preview) Autofix PLW0108 unnecessary-lambda (preview) Nov 11, 2023
@Skylion007
Copy link
Contributor Author

At the very least, the cases where the lambda takes no arguments should be trivial to fix.

@charliermarsh charliermarsh added the fixes Related to suggested fixes for violations label Nov 11, 2023
@charliermarsh charliermarsh self-assigned this Nov 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fixes Related to suggested fixes for violations
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants