[ty] Sync vendored typeshed stubs#25828
Conversation
Typing conformance resultsNo changes detected ✅Current numbersThe percentage of diagnostics emitted that were expected errors held steady at 94.36%. The percentage of expected errors that received a diagnostic held steady at 88.82%. The number of fully passing files held steady at 93/134. |
Memory usage reportSummary
Significant changesClick to expand detailed breakdownprefect
sphinx
flake8
trio
|
|
| | | ||
| info: Function: `print` (`builtins`) | ||
| --> stdlib/builtins.pyi:4512:5 | ||
| --> stdlib/builtins.pyi:4549:5 |
There was a problem hiding this comment.
We could consider to anonymize the line numbes in ty_ide tests. This seems painful 😆
There was a problem hiding this comment.
I tried to get these snapshots auto-updated in typeshed-sync PRs (#20892), but it never worked correctly so I just reverted it. I might set a clanker on it at some point.
But yeah, the constant churn in these files is a bit silly, a custom filter would be nice!
There was a problem hiding this comment.
I'll put up a PR. This should be easy enough
There was a problem hiding this comment.
It will not remove all churn. E.g. changes to the source text still result in a change but it should be much narrower
|
I wasn't expecting this many changes since we only synced typeshed yesterday, but apparently yesterday's sync gave us the docstrings from Python 3.15.0b1, and today's gives us the docstrings from Python 3.15.0b2. I'm not totally sure why that is -- 3.15.0b2 was published a week ago, and there haven't been uv/PBS releases in the meantime... |
|
And for both yesterday's sync and today's sync, the Python version was freshly downloaded by uv: |
|
newer docstrings are better, anyway |
## Summary This follows up on #25823 now that [python/typeshed#15887](python/typeshed#15887) has been merged and vendored by #25828. This removes the hard-coded synthesis for `TypedDict.__closed__` and `__extra_items__` and reads the declarations from typeshed instead. Python 3.15 uses `_typeshed._type_checker_internals.TypedDictFallback`; earlier versions fall back to `typing_extensions._TypedDict`, preserving the backported attributes and existing behavior.
Close and reopen this PR to trigger CI