MartinThoma / flake8-simplify

❄ A flake8 plugin that helps you to simplify code
MIT License
187 stars 19 forks source link

[New Rule] replace `zip(d.keys(), d.values())` with `d.items()` #161

Closed GideonBear closed 1 year ago

GideonBear commented 2 years ago

Explanation

It's shorter and more pythonic

Example

# Bad
zip(d.keys(), d.values())

# Good
d.items()

If this is accepted, I would be interested in implementing this. Thanks for the great flake8 plugin!