-
-
Notifications
You must be signed in to change notification settings - Fork 381
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
add WPS356 violation related to unneccessary iterable unpacking #1124
Conversation
Pull Request Test Coverage Report for Build 2520
💛 - Coveralls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! As always, great job!
@@ -50,9 +48,7 @@ def test_augmented_assign( | |||
@pytest.mark.parametrize('code', [ | |||
'a = a {0} b', | |||
]) | |||
@pytest.mark.parametrize('operation', [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's what I love about new linter rules! It allows to find errors even here!
first, *iterable = other_iterable | ||
|
||
# Wrong: | ||
[*iterable] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess we should also show how to handle this situation. Let's add list(iterable)
to the correct examples.
By the way, @skarzi can you please update the I forgot about it. |
Thanks a lot! |
I have made things!
Checklist
CHANGELOG.md
Related issues
Closes: #1101
🙏 Please, if you or your company is finding wemake-python-styleguide valuable, help us sustain the project by sponsoring it transparently on https://opencollective.com/wemake-python-styleguide. As a thank you, your profile/company logo will be added to our main README which receives hundreds of unique visitors per day.