Skip to content

public symbol filtering with pyrefly report --public-only #3104#3162

Open
jorenham wants to merge 2 commits intofacebook:mainfrom
jorenham:gh-3104
Open

public symbol filtering with pyrefly report --public-only #3104#3162
jorenham wants to merge 2 commits intofacebook:mainfrom
jorenham:gh-3104

Conversation

@jorenham
Copy link
Copy Markdown
Contributor

Summary

In #3104 I proposed that pyrefly report also includes an export graph so we'd be able to figure out in typestats what the public symbols are as post-processing step.

With this change, that is no longer needed. Because now, pyrefly report --public-only will report only the public symbols, using the cross-module tracing algorithm from typestats.

Right now this is opt-in. But we could also make this the default, and instead add a --include-private flag or something. Thoughts?

Fixes #3104

Test Plan

Tests added

@github-actions

This comment has been minimized.

@connernilsen
Copy link
Copy Markdown
Contributor

Hey @stroxler, are you familiar with Pyrefly report? Would you be able to take a look at this?

1 similar comment
@connernilsen
Copy link
Copy Markdown
Contributor

Hey @stroxler, are you familiar with Pyrefly report? Would you be able to take a look at this?

@github-actions

This comment has been minimized.

@migeed-z migeed-z self-assigned this Apr 20, 2026
@meta-codesync
Copy link
Copy Markdown
Contributor

meta-codesync bot commented Apr 20, 2026

@migeed-z has imported this pull request. If you are a Meta employee, you can view this in D101673000.

Copy link
Copy Markdown
Contributor

@connernilsen connernilsen left a comment

Choose a reason for hiding this comment

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

Hey @jorenham, thanks for doing this! I have a few recommendations, but can you rebase and re-request review once you're ready again?

Comment thread pyrefly/lib/commands/report.rs Outdated
Comment thread pyrefly/lib/commands/report.rs Outdated
Comment thread pyrefly/lib/commands/report.rs
@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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pyrefly report: (re-)exports

3 participants