Skip to content

Implement new SIM rule SIM911: zip(dict.keys(), dict.values()) → dict.items() #9319

@Skylion007

Description

@Skylion007

Flake8 simplify was updated recently and a simple, but effective new rule was added.

a = dict(...)
items = zip(a.keys(), a.values())

should instead be

items = a.items()

@dosisod Refurb might be interested in this rule as well.

Metadata

Metadata

Assignees

Labels

good first issueGood for newcomersruleImplementing or modifying a lint rule

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions