Skip to content

Dedupe the names bookkeeping in pyrefly coverage#4252

Open
jorenham wants to merge 1 commit into
facebook:mainfrom
jorenham:coverage/dedupe-`names`-bookkeeping
Open

Dedupe the names bookkeeping in pyrefly coverage#4252
jorenham wants to merge 1 commit into
facebook:mainfrom
jorenham:coverage/dedupe-`names`-bookkeeping

Conversation

@jorenham

Copy link
Copy Markdown
Collaborator

Summary

ModuleReport.names is just the deduped symbol names, but it was maintained together with symbol_reports in three places.

This derives it from symbol_reports in one helper, and fixes a unit test that asserted a names list inconsistent with its own symbol_reports.

Test Plan

Tests still pass; no behavior changes

@jorenham jorenham added the coverage Issues related to `pyrefly coverage`, `pyrefly report` label Jul 22, 2026
@meta-cla meta-cla Bot added the cla signed label Jul 22, 2026
@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. ✅

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

Labels

cla signed coverage Issues related to `pyrefly coverage`, `pyrefly report` quansight size/xs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants