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

Extent merge-dict-assign for more than one dictionary #436

Open
2 tasks done
Anselmoo opened this issue Sep 22, 2024 · 0 comments
Open
2 tasks done

Extent merge-dict-assign for more than one dictionary #436

Anselmoo opened this issue Sep 22, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@Anselmoo
Copy link

Checklist

  • I think this refactoring is useful for everyone (if it's too specific, consider a custom rule)
  • I have checked there are no similar issues suggesting the same thing

Description

Currently, sourcery is only refactoring the first dictionary of several like starting with:

_dict = {}
_dict["A"] = "a"
_dict["B"] = "b"

Code Before

_dict = {"A": "a"}
_dict["B"] = "b"

Code After

_dict =  {"A": "a", "B": "b"}
@Anselmoo Anselmoo added the enhancement New feature or request label Sep 22, 2024
@ruancomelli ruancomelli self-assigned this Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants