Skip to content

strip "-stubs" suffix from FQN in pyrefly report #3094#3125

Closed
jorenham wants to merge 1 commit intofacebook:mainfrom
jorenham:gh-3094
Closed

strip "-stubs" suffix from FQN in pyrefly report #3094#3125
jorenham wants to merge 1 commit intofacebook:mainfrom
jorenham:gh-3094

Conversation

@jorenham
Copy link
Copy Markdown
Contributor

@jorenham jorenham commented Apr 14, 2026

Summary

This fixes the fully-qualified names reported with pyrefly report for stubs-only packages according to PEP 561 by removing the top-level -stubs suffix.

Fixes #3094

Test Plan

added a unit test

@rchen152
Copy link
Copy Markdown
Contributor

Thanks for all the pyrefly report fixes, @jorenham!

@meta-codesync
Copy link
Copy Markdown
Contributor

meta-codesync bot commented Apr 15, 2026

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

@jorenham
Copy link
Copy Markdown
Contributor Author

I see there's a warning, but not what it is exactly 🤔

Copy link
Copy Markdown
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.

Review automatically exported from Phabricator review in Meta.

@rchen152
Copy link
Copy Markdown
Contributor

I see there's a warning, but not what it is exactly 🤔

Oh, you can ignore the signal from "Facebook Internal". I sort of wish we didn't export that, but I don't think we can hide it XD (In this case, the warning is just for a pre-existing skipped test.)

@meta-codesync
Copy link
Copy Markdown
Contributor

meta-codesync bot commented Apr 15, 2026

@rchen152 merged this pull request in 53f2471.

@jorenham jorenham deleted the gh-3094 branch April 15, 2026 17:38
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: FQNs for -stubs packages should not include "-stubs"

3 participants