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

self-assigning-variable (PLW0127) false negative on multi assignment #8667

Closed
DetachHead opened this issue Nov 14, 2023 · 4 comments · Fixed by #8839
Closed

self-assigning-variable (PLW0127) false negative on multi assignment #8667

DetachHead opened this issue Nov 14, 2023 · 4 comments · Fixed by #8839
Assignees
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@DetachHead
Copy link

a = 1
a = a # error

b = b = 1 # no error

playground

@charliermarsh
Copy link
Member

Should the issue title be "false negative"? I want to make sure I understand the issue.

@charliermarsh charliermarsh added the bug Something isn't working label Nov 14, 2023
@DetachHead DetachHead changed the title self-assigning-variable (PLW0127) false positive on multi assignment self-assigning-variable (PLW0127) negative positive on multi assignment Nov 14, 2023
@DetachHead
Copy link
Author

yeah my bad

@DetachHead DetachHead changed the title self-assigning-variable (PLW0127) negative positive on multi assignment self-assigning-variable (PLW0127) false negative on multi assignment Nov 14, 2023
@charliermarsh
Copy link
Member

No worries, thanks!

@charliermarsh charliermarsh added the good first issue Good for newcomers label Nov 14, 2023
@DetachHead
Copy link
Author

if this is a good first issue Good for newcomers i'll have a go at fixing it myself

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants