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

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

Closed
GideonBear opened this issue Nov 9, 2022 · 0 comments · Fixed by #183
Closed

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

GideonBear opened this issue Nov 9, 2022 · 0 comments · Fixed by #183
Assignees
Labels
enhancement New feature or request

Comments

@GideonBear
Copy link

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!

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

Successfully merging a pull request may close this issue.

2 participants