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

non-augmented-assignment (PLR6104) should not trigger when the target is negated #10986

Closed
augustelalande opened this issue Apr 16, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@augustelalande
Copy link
Contributor

non-augmented-assignment (PLR6104) should not trigger when the target is negated

For example:

x = 5 - x

augmented assignment will not be more concise since it would require two assignments.

x *= -1
x += 5
@charliermarsh
Copy link
Member

I believe this is already fixed in #10909, but not released.

@charliermarsh charliermarsh added the bug Something isn't working label Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants