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

Fix B010 lambda false positive #246

Merged
merged 1 commit into from Mar 29, 2022

Conversation

jpy-git
Copy link
Contributor

@jpy-git jpy-git commented Mar 28, 2022

Closes #122. Allows use of settatr within lambda expressions since assignment operators aren't valid in this context.

Copy link
Collaborator

@cooperlees cooperlees left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, clean fix to avoid this edge case ...

tests/b009_b010.py Show resolved Hide resolved
@cooperlees cooperlees merged commit d4afd14 into PyCQA:main Mar 29, 2022
6 checks passed
@jpy-git jpy-git deleted the b010_lambda_false_positive branch March 29, 2022 08:34
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.

B010 (setattr with constant value) false-positive with lambdas
2 participants