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

[native] Don't redundantly nest StarredElement inside another Element #624

Merged
merged 1 commit into from
Jan 23, 2022

Conversation

isidentical
Copy link
Contributor

Summary

Resolves #623

Test Plan

Added 2 tests, which fail with the current main but pass with this patch.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jan 22, 2022
@isidentical isidentical force-pushed the dont-nest-starred-expr branch from c77da54 to 6e800db Compare January 22, 2022 19:13
@codecov-commenter
Copy link

codecov-commenter commented Jan 22, 2022

Codecov Report

Merging #624 (6e800db) into main (d35b6a5) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #624   +/-   ##
=======================================
  Coverage   94.78%   94.78%           
=======================================
  Files         245      245           
  Lines       25256    25256           
=======================================
  Hits        23940    23940           
  Misses       1316     1316           
Impacted Files Coverage Δ
libcst/_nodes/tests/test_tuple.py 94.73% <ø> (ø)

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 d35b6a5...6e800db. Read the comment docs.

Copy link
Contributor

@stroxler stroxler left a comment

Choose a reason for hiding this comment

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

Looks good to me, thanks @isidentical!

cc @zsol for awareness, but since this is just making the native parser match existing behavior I'm going to go ahead and merge it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Redundant nesting of StarredElement in Starred with native parser on some cases
4 participants