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
Forbid assigning to a slice #1629
Labels
good first issue
Entrypoint to the project
Hacktoberfest
Hactoberfest fun!
help wanted
Extra attention is needed
level:starter
Good for newcomers
rule request
Adding a new rule
Milestone
Comments
sobolevn
added
help wanted
Extra attention is needed
level:starter
Good for newcomers
rule request
Adding a new rule
Hacktoberfest
Hactoberfest fun!
good first issue
Entrypoint to the project
labels
Sep 30, 2020
hey, can i take this issue ? |
Yes, thanks a lot! |
@parzuko are you working on this? if not would like to take this up. |
@sudo-k-runner feel free to take it 🙂 |
@sobolevn cool! kinda new to this, so would be great if I can get some pointers. Thanks! |
I recommed to start with our |
sure thing! Thanks 👍 |
4 tasks
sobolevn
added a commit
that referenced
this issue
Feb 7, 2021
* Added AssignToSliceViolation, related code and tests * Updated CHANGELOG.md and added a pytest mark * Added to forbid a[slice(1)] type assignment and tests * removed an extra line from the end of noqa.py * Improves docs * Fixes CI Co-authored-by: Karmanya <kk@Aishwaryas-MacBook-Pro.local> Co-authored-by: sobolevn <mail@sobolevn.me>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
good first issue
Entrypoint to the project
Hacktoberfest
Hactoberfest fun!
help wanted
Extra attention is needed
level:starter
Good for newcomers
rule request
Adding a new rule
Rule request
Thesis
There might be some crazy examples of mutation, when assigning to a slice:
So, let's ban this.
However, we still allow regular index assignments:
Is ok.
The text was updated successfully, but these errors were encountered: