Skip to content

Exclude deleted names in pyrefly coverage report#3579

Open
jorenham wants to merge 1 commit into
facebook:mainfrom
jorenham:gh-3576
Open

Exclude deleted names in pyrefly coverage report#3579
jorenham wants to merge 1 commit into
facebook:mainfrom
jorenham:gh-3576

Conversation

@jorenham
Copy link
Copy Markdown
Contributor

Summary

In order to avoid having to do an additional AST traversal, I slightly tweaked the scope bindings (not sure what to call it) code to collect the deleted names on the fly. That makes this PR is not as self-contained as I hoped it would be. So let me know if there's a cleaner solution.

Fixes #3576

Test Plan

Integration tests added

@github-actions
Copy link
Copy Markdown

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

@meta-codesync
Copy link
Copy Markdown
Contributor

meta-codesync Bot commented May 26, 2026

@yangdanny97 has imported this pull request. If you are a Meta employee, you can view this in D106426490.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pyrefly report includes deleted attributes

1 participant