Skip to content

Exclude module-level __getattr__/__dir__ functions from pyrefly coverage#4028

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

Exclude module-level __getattr__/__dir__ functions from pyrefly coverage#4028
jorenham wants to merge 1 commit into
facebook:mainfrom
jorenham:gh-4020

Conversation

@jorenham

@jorenham jorenham commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes #4020

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 should not count module-level __getattr__ and __dir__ functions as untyped

2 participants