Skip to content

Exclude overloaded implicit dunder returns in pyrefly coverage#4027

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

Exclude overloaded implicit dunder returns in pyrefly coverage#4027
jorenham wants to merge 1 commit into
facebook:mainfrom
jorenham:gh-4019

Conversation

@jorenham

@jorenham jorenham commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Summary

Implicit dunder returns (e.g. __init__(...) -> None) are now also excluded from the typable count by pyrefly coverage {check,report} when the method is overloaded.

Fixes #4019

Test Plan

Regression test added

@github-actions

github-actions Bot commented Jul 2, 2026

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 coverage doesn't exclude the __init__ return slot when overloaded

2 participants