-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[rule] replace if key in dict: del dict[key]
with dict.pop(key, None)
#7537
Comments
5 tasks
dorschw
changed the title
replace
[rule] replace Sep 20, 2023
if key in dict: del dict[key]
with dict.pop(key, None)
if key in dict: del dict[key]
with dict.pop(key, None)
charliermarsh
added
rule
Implementing or modifying a lint rule
needs-decision
Awaiting a decision from a maintainer
accepted
Ready for implementation
and removed
needs-decision
Awaiting a decision from a maintainer
labels
Sep 20, 2023
Seems reasonable to me as a |
You should bring this rule up to the flake8-simplify folks too, they love this kind of stuff and if they implement it, we have a nice rule code for us to build on. |
Some PRs there were merged recently, I may be able to implement it in
python there.
…On Wed, 27 Sept 2023, 16:26 Aaron Gokaslan, ***@***.***> wrote:
You should bring this rule up to the flake8-simplify folks too, they love
this kind of stuff and if they implement it, we have a nice rule code for
us to build on.
—
Reply to this email directly, view it on GitHub
<#7537 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEKVIESFRBBB3HYVO4JPC6DX4QSRJANCNFSM6AAAAAA47QSN2Q>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
@charliermarsh Can I work on this? |
This was referenced Nov 23, 2024
TheBits
pushed a commit
to TheBits/ruff
that referenced
this issue
Dec 11, 2024
## Summary Resolves astral-sh#7537. ## Test Plan `cargo nextest run` and `cargo insta test`. --------- Co-authored-by: Micha Reiser <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'd suggest it to flake8-simplify, but their repo seems inactive since late March 😞
If there's a better place to suggest it, please let me know and I'll copy it there.
The text was updated successfully, but these errors were encountered: