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

Fix false positive unused-variable in lambda default arguments #2276

Merged
merged 1 commit into from
Jul 12, 2018

Conversation

brycepg
Copy link
Contributor

@brycepg brycepg commented Jul 12, 2018

The NameConsumer to_consume frame needed to be backed out by one so that
for lambda bound default argument variables (closure) could consume the
name in a higher scope (just like function default arguments)

Close #1921
Close #1552
Close #1099
Close #210

@coveralls
Copy link

coveralls commented Jul 12, 2018

Coverage Status

Coverage increased (+0.3%) to 90.017% when pulling 7a22911 on brycepg:lambda-default into 916324b on PyCQA:master.

The NameConsumer to_consume frame needed to be backed out by one so that
for lambda bound default argument variables (closure) could consume the
name in a higher scope (just like function default arguments)

Close pylint-dev#1921
Close pylint-dev#1552
Close pylint-dev#1099
Close pylint-dev#210
@PCManticore
Copy link
Contributor

Amazing fix as well! Keep up the good work! I enjoy every PR that closes a couple of issues all at once.

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.

3 participants