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

Scope provider changes for type annotations #1014

Merged
merged 1 commit into from
Sep 30, 2023
Merged

Scope provider changes for type annotations #1014

merged 1 commit into from
Sep 30, 2023

Conversation

zsol
Copy link
Member

@zsol zsol commented Sep 9, 2023

Scope provider changes for type annotations

@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 Sep 9, 2023
Comment on lines 2189 to 2202
self.skipTest(
"f's body is subject to the annotation scoping rules"
" created by its type parameters, but it shouldn't be"
)
self.assertEqual(len(inner_assignment.references), 1)
Copy link
Member Author

Choose a reason for hiding this comment

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

Gotta fix this somehow. The things defined in the AnnotationScope should still be accessible from the body, but not the immediately enclosing class assignments

@codecov-commenter
Copy link

codecov-commenter commented Sep 16, 2023

Codecov Report

Attention: 7 lines in your changes are missing coverage. Please review.

Comparison is base (37277e5) 91.04% compared to head (646a835) 91.06%.
Report is 2 commits behind head on main.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1014      +/-   ##
==========================================
+ Coverage   91.04%   91.06%   +0.02%     
==========================================
  Files         255      255              
  Lines       26366    26512     +146     
==========================================
+ Hits        24004    24143     +139     
- Misses       2362     2369       +7     
Files Coverage Δ
libcst/helpers/common.py 83.33% <100.00%> (ø)
libcst/metadata/scope_provider.py 95.85% <100.00%> (+0.21%) ⬆️
libcst/metadata/tests/test_scope_provider.py 99.20% <93.85%> (-0.69%) ⬇️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@zsol zsol force-pushed the pr1014 branch 2 times, most recently from 21fc1cc to 0c34d0f Compare September 23, 2023 21:16
@zsol zsol marked this pull request as ready for review September 23, 2023 21:17
@zsol zsol force-pushed the pr1014 branch 2 times, most recently from 5a898ea to 0af5bb4 Compare September 30, 2023 09:50
@zsol zsol merged commit 4606011 into main Sep 30, 2023
46 of 48 checks passed
manmartgarc pushed a commit to manmartgarc/LibCST that referenced this pull request Oct 3, 2023
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.

3 participants