Skip to content

[ty] Normalize property setter and deleter wrappers#24509

Merged
charliermarsh merged 1 commit intomainfrom
charlie/deleter-iii
Apr 16, 2026
Merged

[ty] Normalize property setter and deleter wrappers#24509
charliermarsh merged 1 commit intomainfrom
charlie/deleter-iii

Conversation

@charliermarsh
Copy link
Copy Markdown
Member

Summary

Setters and deleters always return None, even if the user returns a different type or annotates it with a different type. We now normalize the return type (while retaining Never or NoReturn, so we can detect invalid deletions).

@astral-sh-bot astral-sh-bot Bot added the ty Multi-file analysis & type inference label Apr 9, 2026
@astral-sh-bot
Copy link
Copy Markdown

astral-sh-bot Bot commented Apr 9, 2026

Typing conformance results

No changes detected ✅

Current numbers
The percentage of diagnostics emitted that were expected errors held steady at 87.94%. The percentage of expected errors that received a diagnostic held steady at 83.21%. The number of fully passing files held steady at 79/133.

@astral-sh-bot
Copy link
Copy Markdown

astral-sh-bot Bot commented Apr 9, 2026

Memory usage report

Memory usage unchanged ✅

@astral-sh-bot
Copy link
Copy Markdown

astral-sh-bot Bot commented Apr 9, 2026

ecosystem-analyzer results

No diagnostic changes detected ✅

Large timing changes:

Project Old Time New Time Change
DateType 0.04s 0.12s +181%

Full report with detailed diff (timing results)

Base automatically changed from charlie/deleter-ii to main April 10, 2026 21:39
@charliermarsh charliermarsh force-pushed the charlie/deleter-iii branch 3 times, most recently from 0955ad4 to df18f81 Compare April 10, 2026 21:56
@charliermarsh charliermarsh marked this pull request as ready for review April 10, 2026 21:56
@carljm carljm removed their request for review April 14, 2026 17:16
@charliermarsh charliermarsh merged commit 9cf212f into main Apr 16, 2026
56 checks passed
@charliermarsh charliermarsh deleted the charlie/deleter-iii branch April 16, 2026 01:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ty Multi-file analysis & type inference

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants