Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[ty] Sync vendored typeshed stubs#25828

Merged
AlexWaygood merged 7 commits into
mainfrom
typeshedbot/sync-typeshed
Jun 10, 2026
Merged

[ty] Sync vendored typeshed stubs#25828
AlexWaygood merged 7 commits into
mainfrom
typeshedbot/sync-typeshed

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Close and reopen this PR to trigger CI

@github-actions github-actions Bot added the ty Multi-file analysis & type inference label Jun 10, 2026
@AlexWaygood AlexWaygood reopened this Jun 10, 2026
@astral-sh-bot

astral-sh-bot Bot commented Jun 10, 2026

Copy link
Copy Markdown

Typing conformance results

No changes detected ✅

Current numbers
The 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.

@astral-sh-bot

astral-sh-bot Bot commented Jun 10, 2026

Copy link
Copy Markdown

Memory usage report

Summary

Project Old New Diff Outcome
prefect 558.76MB 558.78MB +0.00% (19.54kB)
sphinx 206.03MB 206.05MB +0.01% (13.43kB)
flake8 35.26MB 35.27MB +0.03% (10.93kB)
trio 87.18MB 87.18MB +0.00% (2.17kB)

Significant changes

Click to expand detailed breakdown

prefect

Name Old New Diff Outcome
parsed_module 23.47MB 23.48MB +0.05% (11.66kB)
source_text 25.27MB 25.28MB +0.03% (6.63kB)
semantic_index 129.49MB 129.49MB +0.00% (1.93kB)
infer_expression_types_impl 54.84MB 54.84MB -0.00% (888.00B)
infer_definition_types 73.75MB 73.75MB -0.00% (856.00B)
member_lookup_with_policy_inner 13.27MB 13.27MB +0.00% (436.00B)
Definition 20.37MB 20.37MB +0.00% (400.00B)
Expression 8.75MB 8.75MB +0.00% (384.00B)
CallableType 2.70MB 2.70MB -0.01% (304.00B)
is_redundant_with_impl::interned_arguments 2.37MB 2.37MB +0.01% (176.00B)
all_narrowing_constraints_for_expression 13.20MB 13.20MB -0.00% (168.00B)
UnionType 1.38MB 1.38MB +0.01% (128.00B)
is_redundant_with_impl 1.98MB 1.98MB +0.00% (96.00B)
infer_expression_type_impl 387.54kB 387.48kB -0.02% (64.00B)
StaticClassLiteral<'db>::implicit_attribute_inner_ 1.00MB 1.00MB -0.00% (36.00B)

sphinx

Name Old New Diff Outcome
parsed_module 22.31MB 22.31MB +0.03% (7.39kB)
source_text 7.30MB 7.30MB +0.04% (2.86kB)
semantic_index 43.45MB 43.45MB +0.00% (1.93kB)
Definition 7.41MB 7.41MB +0.01% (400.00B)
Expression 2.86MB 2.86MB +0.01% (384.00B)
CallableType 1.37MB 1.37MB +0.02% (304.00B)
infer_expression_types_impl 20.34MB 20.34MB +0.00% (108.00B)
StaticClassLiteral<'db>::implicit_attribute_inner_ 698.71kB 698.76kB +0.01% (44.00B)
member_lookup_with_policy_inner 5.53MB 5.53MB +0.00% (28.00B)
infer_expression_type_impl 279.16kB 279.19kB +0.01% (28.00B)
all_narrowing_constraints_for_expression 4.11MB 4.11MB -0.00% (24.00B)

flake8

Name Old New Diff Outcome
parsed_module 11.90MB 11.91MB +0.05% (6.38kB)
semantic_index 9.72MB 9.72MB +0.02% (1.93kB)
source_text 1.58MB 1.59MB +0.11% (1.85kB)
Definition 1.82MB 1.82MB +0.02% (400.00B)
Expression 321.25kB 321.62kB +0.12% (384.00B)

trio

Name Old New Diff Outcome
parsed_module 18.27MB 18.28MB +0.04% (6.72kB)
all_narrowing_constraints_for_expression 1010.49kB 1007.28kB -0.32% (3.21kB)
infer_expression_types_impl 6.50MB 6.50MB -0.04% (2.33kB)
source_text 3.74MB 3.74MB +0.06% (2.19kB)
semantic_index 21.15MB 21.16MB +0.01% (1.93kB)
infer_expression_type_impl 61.02kB 59.13kB -3.10% (1.89kB)
member_lookup_with_policy_inner 1.39MB 1.39MB -0.04% (548.00B)
is_redundant_with_impl::interned_arguments 224.90kB 224.38kB -0.23% (528.00B)
StaticClassLiteral<'db>::implicit_attribute_inner_ 120.45kB 120.05kB -0.34% (416.00B)
Definition 3.61MB 3.61MB +0.01% (400.00B)
Expression 1.26MB 1.26MB +0.03% (384.00B)
is_redundant_with_impl 182.02kB 181.73kB -0.15% (288.00B)
UnionType 151.25kB 150.98kB -0.18% (272.00B)

@astral-sh-bot

astral-sh-bot Bot commented Jun 10, 2026

Copy link
Copy Markdown

ecosystem-analyzer results

No diagnostic changes detected ✅

Flaky changes detected. This PR summary excludes flaky changes; see the HTML report for details.

Full report with detailed diff (timing results)

|
info: Function: `print` (`builtins`)
--> stdlib/builtins.pyi:4512:5
--> stdlib/builtins.pyi:4549:5

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could consider to anonymize the line numbes in ty_ide tests. This seems painful 😆

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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!

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll put up a PR. This should be easy enough

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It will not remove all churn. E.g. changes to the source text still result in a change but it should be much narrower

@AlexWaygood

Copy link
Copy Markdown
Member

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

@AlexWaygood

Copy link
Copy Markdown
Member

And for both yesterday's sync and today's sync, the Python version was freshly downloaded by uv:

@AlexWaygood

Copy link
Copy Markdown
Member

newer docstrings are better, anyway ¯\(ツ)/¯

@AlexWaygood AlexWaygood merged commit 3d1d03d into main Jun 10, 2026
58 checks passed
@AlexWaygood AlexWaygood deleted the typeshedbot/sync-typeshed branch June 10, 2026 17:01
charliermarsh added a commit that referenced this pull request Jun 10, 2026
## 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.
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.

3 participants