Skip to content

Sync vendored typeshed stubs#18679

Merged
AlexWaygood merged 1 commit intomainfrom
typeshedbot/sync-typeshed
Jun 15, 2025
Merged

Sync vendored typeshed stubs#18679
AlexWaygood merged 1 commit intomainfrom
typeshedbot/sync-typeshed

Conversation

@github-actions
Copy link
Contributor

Close and reopen this PR to trigger CI

@github-actions github-actions bot added the internal An internal refactor or improvement label Jun 15, 2025
@AlexWaygood AlexWaygood reopened this Jun 15, 2025
@AlexWaygood AlexWaygood added ty Multi-file analysis & type inference and removed internal An internal refactor or improvement labels Jun 15, 2025
@github-actions
Copy link
Contributor Author

mypy_primer results

No ecosystem changes detected ✅

@AlexWaygood
Copy link
Member

We should rework the github workflow so it no longer adds the "internal" label to these PRs. They lead to behaviour changes for ty users; we should include mentions of them in ty release notes.

@AlexWaygood AlexWaygood merged commit 782363b into main Jun 15, 2025
35 checks passed
@AlexWaygood AlexWaygood deleted the typeshedbot/sync-typeshed branch June 15, 2025 09:20
sharkdp added a commit that referenced this pull request Jun 16, 2025
## Summary

Ref:
#18679 (comment)

---------

Co-authored-by: Alex Waygood <[email protected]>
@dhruvmanila
Copy link
Member

We should rework the github workflow so it no longer adds the "internal" label to these PRs. They lead to behaviour changes for ty users; we should include mentions of them in ty release notes.

Can you say how should we highlight a change like this in the release notes? I'm not sure how useful it is to say that the typeshed version was bumped from commit A to B.

@AlexWaygood
Copy link
Member

AlexWaygood commented Jun 17, 2025

Can you say how should we highlight a change like this in the release notes?

It's a good question! Ideally I guess we'd list all the stdlib functions and classes that were changed, added or removed from the stubs, but I don't think there's an easy way to obtain that information. We could maybe link to a GitHub diff between the typeshed commit featured in our previous release and the typeshed commit in the new release -- that might be possible to automate?

Pyright generally just says "Updated vendored typeshed stubs to the latest version" in its release notes. I agree that that isn't terribly informative for users. But they do at least get a link to the commit that shows the stubs being updated, which will allow them to check whether a change to the stdlib stubs that they care about was included in the latest pyright release. There are often users who find themselves unable to upgrade to the latest version of pyright or mypy due to regressions in typeshed, so I do think there are often users who will be grateful to know about typeshed changes!

@dhruvmanila
Copy link
Member

We could maybe link to a GitHub diff between the typeshed commit featured in our previous release and the typeshed commit in the new release -- that might be possible to automate?

Yeah, I like this! We can start with this. I'm not sure about automation but we could update the release instructions to include this.

@AlexWaygood
Copy link
Member

And we always update this file when syncing vendored typeshed stubs, so it shouldn't be too hard to get a GitHub diff between the typeshed commit that was present in the previous release and the typeshed commit in the new release

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