Skip to content

always ignore trivial dunder return types in pyrefly report #3100#3131

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

always ignore trivial dunder return types in pyrefly report #3100#3131
jorenham wants to merge 1 commit intofacebook:mainfrom
jorenham:gh-3100

Conversation

@jorenham
Copy link
Copy Markdown
Contributor

@jorenham jorenham commented Apr 14, 2026

Summary

This changes pyrefly report to always ignores trivial types of special methods and attributes, instead of selectively ignoring it when not provided. This avoids inflating the type coverage %.

Fixes #3100

Test Plan

Corresponding tests were updated

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

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

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.

@meta-codesync
Copy link
Copy Markdown
Contributor

meta-codesync bot commented Apr 15, 2026

@rchen152 merged this pull request in 441e6d3.

@jorenham jorenham deleted the gh-3100 branch April 15, 2026 17:39
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: ignore trivial return types of special methods and attributes

2 participants