Skip to content

"merge" overloads in pyrefly report #3098#3134

Open
jorenham wants to merge 1 commit intofacebook:mainfrom
jorenham:gh-3098
Open

"merge" overloads in pyrefly report #3098#3134
jorenham wants to merge 1 commit intofacebook:mainfrom
jorenham:gh-3098

Conversation

@jorenham
Copy link
Copy Markdown
Contributor

Summary

This ports the typestats overload merging logic (https://github.com/jorenham/typestats/blob/5fb1144/src/typestats/analyze.py#L335-L376) to dedupe the parameters and callable signatures that make up overloads.

Fixes #3098

Test Plan

Added tests and updated existing ones

@github-actions

This comment has been minimized.

@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 D100901431.

@github-actions github-actions bot added size/xl and removed size/xl labels Apr 15, 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. ✅

@connernilsen
Copy link
Copy Markdown
Contributor

Hey @rchen152, would you be able to take a look at this (or redirect it to someone who might be a better reviewer)?

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: typable counts for overloads is too high

3 participants