Skip to content

fix property typable counts in pyrefly report #3099#3129

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

fix property typable counts in pyrefly report #3099#3129
jorenham wants to merge 1 commit intofacebook:mainfrom
jorenham:gh-3099

Conversation

@jorenham
Copy link
Copy Markdown
Contributor

Summary

This special-cases the typable counting logic of property setters and deleters to ignore their trivial -> None return types.

Fixes #3099

Test Plan

Relevant tests updated

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

@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

connernilsen commented Apr 15, 2026

Hey @rchen152, I noticed you reviewed a similar PR. Would you be able to look at this one too? Never mind, this was the diff I was thinking about, somehow missed that it was imported lol

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: property setters/getters/deleters are counted separately

3 participants