Sync typeshed by cdce8p · Pull Request #18930 · python/mypy

@cdce8p marked this pull request as draft

April 16, 2025 11:10

@cdce8p cdce8p marked this pull request as ready for review

April 16, 2025 15:39

@cdce8p

@cdce8p

@cdce8p

@cdce8p

@cdce8p

@hauntsaninja @cdce8p

@cdce8p

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)

@AlexWaygood @cdce8p

@cdce8p

@cdce8p cdce8p deleted the sync-typeshed branch

May 27, 2025 20:22

hauntsaninja pushed a commit that referenced this pull request

May 28, 2025
Drop last remaining support for Python 3.8. Support for running with 3.8
was removed in #17492 already. This PR removes the option to use 3.8
with `--python-version` since the type stubs only support 3.9+, see
#18930.