Skip to content

Sync typeshed#21707

Merged
hauntsaninja merged 11 commits into
masterfrom
mypybot/sync-typeshed
Jul 9, 2026
Merged

Sync typeshed#21707
hauntsaninja merged 11 commits into
masterfrom
mypybot/sync-typeshed

Conversation

@github-actions

@github-actions github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Sync typeshed

Source commit:
python/typeshed@f76037a

Note that you will need to close and re-open the PR in order to trigger CI.

mypybot and others added 11 commits July 8, 2026 19:20
This is allegedly causing large performance problems, see 13821

typeshed/8231 had zero hits on mypy_primer, so it's not the worst thing
to undo. Patching this in typeshed also feels weird, since there's a
more general soundness issue. If a typevar has a bound or constraint, we
might not want to solve it to a Literal.

If we can confirm the performance regression or fix the unsoundness
within mypy, I might pursue upstreaming this in typeshed.

(Reminder: add this to the sync_typeshed script once merged)
The plugin provides superior type checking:
#13987 (comment)
A manual cherry-pick of e437cdf.
@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown
Contributor Author

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

@hauntsaninja hauntsaninja merged commit af2bc0f into master Jul 9, 2026
25 checks passed
@hauntsaninja hauntsaninja deleted the mypybot/sync-typeshed branch July 9, 2026 02:46
@hauntsaninja

Copy link
Copy Markdown
Collaborator

I triggered this just to pick up the frozendict change

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants