Skip to content

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

Open
@Anselmoo

Description

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"}

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions