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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closes #1684 #1850

Merged
merged 3 commits into from Feb 6, 2021
Merged

Closes #1684 #1850

merged 3 commits into from Feb 6, 2021

Conversation

sobolevn
Copy link
Member

@sobolevn sobolevn commented Feb 6, 2021

I have made things!

Checklist

  • I have double checked that there are no unrelated changes in this pull request (old patches, accidental config files, etc)
  • I have created at least one test case for the changes I have made
  • I have updated the documentation for the changes I have made
  • I have added my changes to the CHANGELOG.md

Related issues

馃檹 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.

@@ -11,7 +11,7 @@
from wemake_python_styleguide.logic import walk
from wemake_python_styleguide.logic.naming import name_nodes
from wemake_python_styleguide.logic.nodes import get_parent
from wemake_python_styleguide.logic.tree import keywords, operators
from wemake_python_styleguide.logic.tree import keywords, operators, variables
Copy link
Contributor

Choose a reason for hiding this comment

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

[pep8] reported by reviewdog 馃惗
F401 'wemake_python_styleguide.logic.tree.variables' imported but unused

@codecov
Copy link

codecov bot commented Feb 6, 2021

Codecov Report

Merging #1850 (b317102) into master (7ad2e20) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master     #1850   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          107       107           
  Lines         5991      5992    +1     
  Branches      1341      1343    +2     
=========================================
+ Hits          5991      5992    +1     
Impacted Files Coverage 螖
...ake_python_styleguide/violations/best_practices.py 100.00% <酶> (酶)
wemake_python_styleguide/logic/tree/variables.py 100.00% <100.00%> (酶)
wemake_python_styleguide/visitors/ast/builtins.py 100.00% <100.00%> (酶)

Continue to review full report at Codecov.

Legend - Click here to learn more
螖 = absolute <relative> (impact), 酶 = not affected, ? = missing data
Powered by Codecov. Last update 7ad2e20...b317102. Read the comment docs.

@sobolevn sobolevn merged commit dce62cb into master Feb 6, 2021
@delete-merged-branch delete-merged-branch bot deleted the issue-1684 branch February 6, 2021 21:58
"""Checks if unpacking target is correct."""
if isinstance(target, ast.Tuple):
return all(
_is_valid_single(element) is not None
Copy link
Collaborator

Choose a reason for hiding this comment

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

_is_valid_single returns bool so why the result is compared to None?
Shouldn't it be just _is_valid_single(element)?

sobolevn added a commit that referenced this pull request Feb 8, 2021
sobolevn added a commit that referenced this pull request Feb 8, 2021
* Addresses review from #1850

* Catches the corner-case
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.

None yet

2 participants