Skip to content

[ty] Treat bad-fields functional TypedDict as a lenient fallback#24253

Closed
charliermarsh wants to merge 39 commits intocharlie/typed-dict-1from
charlie/typed-dict-4
Closed

[ty] Treat bad-fields functional TypedDict as a lenient fallback#24253
charliermarsh wants to merge 39 commits intocharlie/typed-dict-1from
charlie/typed-dict-4

Conversation

@charliermarsh
Copy link
Copy Markdown
Member

Summary

See: #24174 (comment).

@astral-sh-bot astral-sh-bot bot added the ty Multi-file analysis & type inference label Mar 27, 2026
@charliermarsh charliermarsh marked this pull request as ready for review March 27, 2026 18:36
@astral-sh-bot
Copy link
Copy Markdown

astral-sh-bot bot commented Mar 27, 2026

Typing conformance results

No changes detected ✅

Current numbers
The percentage of diagnostics emitted that were expected errors held steady at 86.50%. The percentage of expected errors that received a diagnostic held steady at 81.37%. The number of fully passing files held steady at 67/132.

@astral-sh-bot
Copy link
Copy Markdown

astral-sh-bot bot commented Mar 27, 2026

Memory usage report

Memory usage unchanged ✅

@astral-sh-bot
Copy link
Copy Markdown

astral-sh-bot bot commented Mar 27, 2026

ecosystem-analyzer results

Lint rule Added Removed Changed
invalid-await 40 0 0
invalid-return-type 1 0 0
Total 41 0 0

Changes in flaky projects detected. Raw diff output excludes flaky projects; see the HTML report for details.

Full report with detailed diff (timing results)

@AlexWaygood
Copy link
Copy Markdown
Member

Ah, thanks for splitting this one out -- that does clarify things a bit. I didn't realise the special casing was quite so scattered across so many methods...

I do still feel like having a lenient fallback is the correct thing to do in terms of the principle of the thing, but it probably doesn't matter that much -- and I'm not sure it's worth this much special casing. So maybe we should just leave it for now. It's pretty unlikely that anybody will complain about not having this.

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