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

Refactor mapping of lambda functions #1756

Merged
merged 1 commit into from Nov 28, 2022
Merged

Refactor mapping of lambda functions #1756

merged 1 commit into from Nov 28, 2022

Conversation

mportesdev
Copy link
Contributor

What does this change

Usages of map(lambda...) refactored to list comprehensions or generator expressions.

What was wrong

When running checks locally with tox, the flake8 job failed with "C417 Unnecessary use of map".

How this fixes it

All tox jobs run successfully.

Fixes #1755

Refactor all occurrences of `map(lambda...)` to avoid the flake8-comprehensions warning "C417 Unnecessary use of map".
Copy link
Collaborator

@fcurella fcurella left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@fcurella fcurella merged commit 79228b9 into joke2k:master Nov 28, 2022
@mportesdev mportesdev deleted the fix/flake8-C417 branch November 29, 2022 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

flake8 job for tox fails with "C417 Unnecessary use of map"
2 participants