Skip to content

Conversation

@jhance
Copy link
Collaborator

@jhance jhance commented Feb 26, 2025

No description provided.

jhance and others added 6 commits February 25, 2025 13:16
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)
@github-actions
Copy link
Contributor

Diff from mypy_primer, showing the effect of this PR on open source code:

yarl (https://github.com/aio-libs/yarl)
+ yarl/_quoting_py.py:132:19: error: Redundant cast to "BufferedIncrementalDecoder"  [redundant-cast]

@jhance jhance merged commit e93f06c into python:master Feb 26, 2025
18 checks passed
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.

4 participants