-
-
Notifications
You must be signed in to change notification settings - Fork 278
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
Infer starred expressions in tuple, list, set and dict literals #396
Conversation
Just a POC, needs: 1) Guidance on if it’s a correct way to solve a problem 2) Extra tests 3) Docs entries Aims to solve pylint-dev/pylint#957
Lack of coverage is due to guard except clause not being hit. May be easily improved by adding additional tests. |
…-dev#397)" (pylint-dev#398) This reverts commit 3e6ef99.
4 similar comments
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.
This looks amazing @rogalski. Left just one tiny comment. it would be amazing if you could backport this to 2.0 branch.
astroid/inference.py
Outdated
|
||
|
||
def infer_map(self, context=None): | ||
if not any(isinstance(k, nodes.DictUnpack) for k, v in self.items): |
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.
We don't use v
.
Just a POC, needs:
Aims to solve pylint-dev/pylint#957