Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork3.1k
Revert sum literal integer change#13961
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
This is allegedly causing large performance problems, see 13821typeshed/8231 had zero hits on mypy_primer, so it's not the worst thingto undo. Patching this in typeshed also feels weird. If a typevar has abound or constraint, we might not want to solve it to a Literal.If we can confirm the performance regression or fix the unsoundnesswithin mypy, I might pursue upstreaming this in typeshed.
hauntsaninja commentedOct 29, 2022
cc@AlexWaygood , in case you have opinions |
AlexWaygood commentedOct 29, 2022
my opinion is that huge performance regressions are bad, feel free to go ahead 👍 :) |
hauntsaninja commentedOct 29, 2022 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Lol, alleged performance regressions though :-) I meant more on the upstreaming the revert question |
hauntsaninja commentedOct 29, 2022 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
I also filedmicrosoft/pyright#4108 , so we'll see if Eric has a point of view |
According tomypy_primer, this change has no effect on the checked open source code. 🤖🎉 |
This is allegedly causing large performance problems, see 13821typeshed/8231 had zero hits on mypy_primer, so it's not the worst thingto undo. Patching this in typeshed also feels weird, since there's amore general soundness issue. If a typevar has a bound or constraint, wemight not want to solve it to a Literal.If we can confirm the performance regression or fix the unsoundnesswithin mypy, I might pursue upstreaming this in typeshed.(Reminder: add this to the sync_typeshed script once merged)
Makes sure we continue to cherry pick#13961
AlexWaygood commentedOct 29, 2022
Hah, I thought this was a PR to the typeshed repo when I posted my comment :) The stub for I filed the PR adding If the |
hauntsaninja commentedOct 29, 2022 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Yeah, I guess in my mind there are two slightly different things at play here:
I'm currently thinking if I were to make a change to typeshed it might be pragmatic to change
|
AlexWaygood commentedOct 30, 2022
I'd be fine with that. The only reason I went with
Though there's a certain symmetry here with |
AlexWaygood commentedOct 30, 2022 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
I agree that the underlying soundness issue is a thing, and is a pain. I think it's come up a few other times as well (but Eric's also right that it's not avery common issue). No idea how we could fix it, though — we'd probably need to somehow formalise exactly when it's unsound to solve a |
This is allegedly causing large performance problems, see 13821typeshed/8231 had zero hits on mypy_primer, so it's not the worst thingto undo. Patching this in typeshed also feels weird, since there's amore general soundness issue. If a typevar has a bound or constraint, wemight not want to solve it to a Literal.If we can confirm the performance regression or fix the unsoundnesswithin mypy, I might pursue upstreaming this in typeshed.(Reminder: add this to the sync_typeshed script once merged)
This is allegedly causing large performance problems, see 13821typeshed/8231 had zero hits on mypy_primer, so it's not the worst thingto undo. Patching this in typeshed also feels weird, since there's amore general soundness issue. If a typevar has a bound or constraint, wemight not want to solve it to a Literal.If we can confirm the performance regression or fix the unsoundnesswithin mypy, I might pursue upstreaming this in typeshed.(Reminder: add this to the sync_typeshed script once merged)
This is allegedly causing large performance problems, see 13821typeshed/8231 had zero hits on mypy_primer, so it's not the worst thingto undo. Patching this in typeshed also feels weird, since there's amore general soundness issue. If a typevar has a bound or constraint, wemight not want to solve it to a Literal.If we can confirm the performance regression or fix the unsoundnesswithin mypy, I might pursue upstreaming this in typeshed.(Reminder: add this to the sync_typeshed script once merged)
This is allegedly causing large performance problems, see 13821typeshed/8231 had zero hits on mypy_primer, so it's not the worst thingto undo. Patching this in typeshed also feels weird, since there's amore general soundness issue. If a typevar has a bound or constraint, wemight not want to solve it to a Literal.If we can confirm the performance regression or fix the unsoundnesswithin mypy, I might pursue upstreaming this in typeshed.(Reminder: add this to the sync_typeshed script once merged)
This is allegedly causing large performance problems, see 13821typeshed/8231 had zero hits on mypy_primer, so it's not the worst thingto undo. Patching this in typeshed also feels weird, since there's amore general soundness issue. If a typevar has a bound or constraint, wemight not want to solve it to a Literal.If we can confirm the performance regression or fix the unsoundnesswithin mypy, I might pursue upstreaming this in typeshed.(Reminder: add this to the sync_typeshed script once merged)
This is allegedly causing large performance problems, see 13821typeshed/8231 had zero hits on mypy_primer, so it's not the worst thingto undo. Patching this in typeshed also feels weird, since there's amore general soundness issue. If a typevar has a bound or constraint, wemight not want to solve it to a Literal.If we can confirm the performance regression or fix the unsoundnesswithin mypy, I might pursue upstreaming this in typeshed.(Reminder: add this to the sync_typeshed script once merged)
This is allegedly causing large performance problems, see 13821typeshed/8231 had zero hits on mypy_primer, so it's not the worst thingto undo. Patching this in typeshed also feels weird, since there's amore general soundness issue. If a typevar has a bound or constraint, wemight not want to solve it to a Literal.If we can confirm the performance regression or fix the unsoundnesswithin mypy, I might pursue upstreaming this in typeshed.(Reminder: add this to the sync_typeshed script once merged)
This is allegedly causing large performance problems, see 13821typeshed/8231 had zero hits on mypy_primer, so it's not the worst thingto undo. Patching this in typeshed also feels weird, since there's amore general soundness issue. If a typevar has a bound or constraint, wemight not want to solve it to a Literal.If we can confirm the performance regression or fix the unsoundnesswithin mypy, I might pursue upstreaming this in typeshed.(Reminder: add this to the sync_typeshed script once merged)
This is allegedly causing large performance problems, see 13821typeshed/8231 had zero hits on mypy_primer, so it's not the worst thingto undo. Patching this in typeshed also feels weird, since there's amore general soundness issue. If a typevar has a bound or constraint, wemight not want to solve it to a Literal.If we can confirm the performance regression or fix the unsoundnesswithin mypy, I might pursue upstreaming this in typeshed.(Reminder: add this to the sync_typeshed script once merged)
This is allegedly causing large performance problems, see 13821typeshed/8231 had zero hits on mypy_primer, so it's not the worst thingto undo. Patching this in typeshed also feels weird, since there's amore general soundness issue. If a typevar has a bound or constraint, wemight not want to solve it to a Literal.If we can confirm the performance regression or fix the unsoundnesswithin mypy, I might pursue upstreaming this in typeshed.(Reminder: add this to the sync_typeshed script once merged)
This is allegedly causing large performance problems, see 13821typeshed/8231 had zero hits on mypy_primer, so it's not the worst thingto undo. Patching this in typeshed also feels weird, since there's amore general soundness issue. If a typevar has a bound or constraint, wemight not want to solve it to a Literal.If we can confirm the performance regression or fix the unsoundnesswithin mypy, I might pursue upstreaming this in typeshed.(Reminder: add this to the sync_typeshed script once merged)
This is allegedly causing large performance problems, see 13821typeshed/8231 had zero hits on mypy_primer, so it's not the worst thingto undo. Patching this in typeshed also feels weird, since there's amore general soundness issue. If a typevar has a bound or constraint, wemight not want to solve it to a Literal.If we can confirm the performance regression or fix the unsoundnesswithin mypy, I might pursue upstreaming this in typeshed.(Reminder: add this to the sync_typeshed script once merged)
This is allegedly causing large performance problems, see 13821typeshed/8231 had zero hits on mypy_primer, so it's not the worst thingto undo. Patching this in typeshed also feels weird, since there's amore general soundness issue. If a typevar has a bound or constraint, wemight not want to solve it to a Literal.If we can confirm the performance regression or fix the unsoundnesswithin mypy, I might pursue upstreaming this in typeshed.(Reminder: add this to the sync_typeshed script once merged)
This is allegedly causing large performance problems, see 13821typeshed/8231 had zero hits on mypy_primer, so it's not the worst thingto undo. Patching this in typeshed also feels weird, since there's amore general soundness issue. If a typevar has a bound or constraint, wemight not want to solve it to a Literal.If we can confirm the performance regression or fix the unsoundnesswithin mypy, I might pursue upstreaming this in typeshed.(Reminder: add this to the sync_typeshed script once merged)
This is allegedly causing large performance problems, see 13821typeshed/8231 had zero hits on mypy_primer, so it's not the worst thingto undo. Patching this in typeshed also feels weird, since there's amore general soundness issue. If a typevar has a bound or constraint, wemight not want to solve it to a Literal.If we can confirm the performance regression or fix the unsoundnesswithin mypy, I might pursue upstreaming this in typeshed.(Reminder: add this to the sync_typeshed script once merged)
This is allegedly causing large performance problems, see 13821typeshed/8231 had zero hits on mypy_primer, so it's not the worst thingto undo. Patching this in typeshed also feels weird, since there's amore general soundness issue. If a typevar has a bound or constraint, wemight not want to solve it to a Literal.If we can confirm the performance regression or fix the unsoundnesswithin mypy, I might pursue upstreaming this in typeshed.(Reminder: add this to the sync_typeshed script once merged)
This is allegedly causing large performance problems, see 13821typeshed/8231 had zero hits on mypy_primer, so it's not the worst thingto undo. Patching this in typeshed also feels weird, since there's amore general soundness issue. If a typevar has a bound or constraint, wemight not want to solve it to a Literal.If we can confirm the performance regression or fix the unsoundnesswithin mypy, I might pursue upstreaming this in typeshed.(Reminder: add this to the sync_typeshed script once merged)
This is allegedly causing large performance problems, see 13821typeshed/8231 had zero hits on mypy_primer, so it's not the worst thingto undo. Patching this in typeshed also feels weird, since there's amore general soundness issue. If a typevar has a bound or constraint, wemight not want to solve it to a Literal.If we can confirm the performance regression or fix the unsoundnesswithin mypy, I might pursue upstreaming this in typeshed.(Reminder: add this to the sync_typeshed script once merged)
This is allegedly causing large performance problems, see 13821typeshed/8231 had zero hits on mypy_primer, so it's not the worst thingto undo. Patching this in typeshed also feels weird, since there's amore general soundness issue. If a typevar has a bound or constraint, wemight not want to solve it to a Literal.If we can confirm the performance regression or fix the unsoundnesswithin mypy, I might pursue upstreaming this in typeshed.(Reminder: add this to the sync_typeshed script once merged)
This is allegedly causing large performance problems, see 13821typeshed/8231 had zero hits on mypy_primer, so it's not the worst thingto undo. Patching this in typeshed also feels weird, since there's amore general soundness issue. If a typevar has a bound or constraint, wemight not want to solve it to a Literal.If we can confirm the performance regression or fix the unsoundnesswithin mypy, I might pursue upstreaming this in typeshed.(Reminder: add this to the sync_typeshed script once merged)
This is allegedly causing large performance problems, see 13821typeshed/8231 had zero hits on mypy_primer, so it's not the worst thingto undo. Patching this in typeshed also feels weird, since there's amore general soundness issue. If a typevar has a bound or constraint, wemight not want to solve it to a Literal.If we can confirm the performance regression or fix the unsoundnesswithin mypy, I might pursue upstreaming this in typeshed.(Reminder: add this to the sync_typeshed script once merged)
This is allegedly causing large performance problems, see 13821typeshed/8231 had zero hits on mypy_primer, so it's not the worst thingto undo. Patching this in typeshed also feels weird, since there's amore general soundness issue. If a typevar has a bound or constraint, wemight not want to solve it to a Literal.If we can confirm the performance regression or fix the unsoundnesswithin mypy, I might pursue upstreaming this in typeshed.(Reminder: add this to the sync_typeshed script once merged)
This is allegedly causing large performance problems, see 13821typeshed/8231 had zero hits on mypy_primer, so it's not the worst thingto undo. Patching this in typeshed also feels weird, since there's amore general soundness issue. If a typevar has a bound or constraint, wemight not want to solve it to a Literal.If we can confirm the performance regression or fix the unsoundnesswithin mypy, I might pursue upstreaming this in typeshed.(Reminder: add this to the sync_typeshed script once merged)
This is allegedly causing large performance problems, see 13821typeshed/8231 had zero hits on mypy_primer, so it's not the worst thingto undo. Patching this in typeshed also feels weird, since there's amore general soundness issue. If a typevar has a bound or constraint, wemight not want to solve it to a Literal.If we can confirm the performance regression or fix the unsoundnesswithin mypy, I might pursue upstreaming this in typeshed.(Reminder: add this to the sync_typeshed script once merged)
This is allegedly causing large performance problems, see 13821typeshed/8231 had zero hits on mypy_primer, so it's not the worst thingto undo. Patching this in typeshed also feels weird, since there's amore general soundness issue. If a typevar has a bound or constraint, wemight not want to solve it to a Literal.If we can confirm the performance regression or fix the unsoundnesswithin mypy, I might pursue upstreaming this in typeshed.(Reminder: add this to the sync_typeshed script once merged)
This is allegedly causing large performance problems, see 13821typeshed/8231 had zero hits on mypy_primer, so it's not the worst thingto undo. Patching this in typeshed also feels weird, since there's amore general soundness issue. If a typevar has a bound or constraint, wemight not want to solve it to a Literal.If we can confirm the performance regression or fix the unsoundnesswithin mypy, I might pursue upstreaming this in typeshed.(Reminder: add this to the sync_typeshed script once merged)
This is allegedly causing large performance problems, see 13821typeshed/8231 had zero hits on mypy_primer, so it's not the worst thingto undo. Patching this in typeshed also feels weird, since there's amore general soundness issue. If a typevar has a bound or constraint, wemight not want to solve it to a Literal.If we can confirm the performance regression or fix the unsoundnesswithin mypy, I might pursue upstreaming this in typeshed.(Reminder: add this to the sync_typeshed script once merged)
This is allegedly causing large performance problems, see 13821typeshed/8231 had zero hits on mypy_primer, so it's not the worst thingto undo. Patching this in typeshed also feels weird, since there's amore general soundness issue. If a typevar has a bound or constraint, wemight not want to solve it to a Literal.If we can confirm the performance regression or fix the unsoundnesswithin mypy, I might pursue upstreaming this in typeshed.(Reminder: add this to the sync_typeshed script once merged)
This is allegedly causing large performance problems, see 13821typeshed/8231 had zero hits on mypy_primer, so it's not the worst thingto undo. Patching this in typeshed also feels weird, since there's amore general soundness issue. If a typevar has a bound or constraint, wemight not want to solve it to a Literal.If we can confirm the performance regression or fix the unsoundnesswithin mypy, I might pursue upstreaming this in typeshed.(Reminder: add this to the sync_typeshed script once merged)
This is allegedly causing large performance problems, see 13821typeshed/8231 had zero hits on mypy_primer, so it's not the worst thingto undo. Patching this in typeshed also feels weird, since there's amore general soundness issue. If a typevar has a bound or constraint, wemight not want to solve it to a Literal.If we can confirm the performance regression or fix the unsoundnesswithin mypy, I might pursue upstreaming this in typeshed.(Reminder: add this to the sync_typeshed script once merged)
This is allegedly causing large performance problems, see 13821typeshed/8231 had zero hits on mypy_primer, so it's not the worst thingto undo. Patching this in typeshed also feels weird, since there's amore general soundness issue. If a typevar has a bound or constraint, wemight not want to solve it to a Literal.If we can confirm the performance regression or fix the unsoundnesswithin mypy, I might pursue upstreaming this in typeshed.(Reminder: add this to the sync_typeshed script once merged)
This is allegedly causing large performance problems, see 13821typeshed/8231 had zero hits on mypy_primer, so it's not the worst thingto undo. Patching this in typeshed also feels weird, since there's amore general soundness issue. If a typevar has a bound or constraint, wemight not want to solve it to a Literal.If we can confirm the performance regression or fix the unsoundnesswithin mypy, I might pursue upstreaming this in typeshed.(Reminder: add this to the sync_typeshed script once merged)
This is allegedly causing large performance problems, see 13821typeshed/8231 had zero hits on mypy_primer, so it's not the worst thingto undo. Patching this in typeshed also feels weird, since there's amore general soundness issue. If a typevar has a bound or constraint, wemight not want to solve it to a Literal.If we can confirm the performance regression or fix the unsoundnesswithin mypy, I might pursue upstreaming this in typeshed.(Reminder: add this to the sync_typeshed script once merged)
This is allegedly causing large performance problems, see 13821typeshed/8231 had zero hits on mypy_primer, so it's not the worst thingto undo. Patching this in typeshed also feels weird, since there's amore general soundness issue. If a typevar has a bound or constraint, wemight not want to solve it to a Literal.If we can confirm the performance regression or fix the unsoundnesswithin mypy, I might pursue upstreaming this in typeshed.(Reminder: add this to the sync_typeshed script once merged)
This is allegedly causing large performance problems, see 13821typeshed/8231 had zero hits on mypy_primer, so it's not the worst thingto undo. Patching this in typeshed also feels weird, since there's amore general soundness issue. If a typevar has a bound or constraint, wemight not want to solve it to a Literal.If we can confirm the performance regression or fix the unsoundnesswithin mypy, I might pursue upstreaming this in typeshed.(Reminder: add this to the sync_typeshed script once merged)
This is allegedly causing large performance problems, see 13821typeshed/8231 had zero hits on mypy_primer, so it's not the worst thingto undo. Patching this in typeshed also feels weird, since there's amore general soundness issue. If a typevar has a bound or constraint, wemight not want to solve it to a Literal.If we can confirm the performance regression or fix the unsoundnesswithin mypy, I might pursue upstreaming this in typeshed.(Reminder: add this to the sync_typeshed script once merged)
This is allegedly causing large performance problems, see 13821typeshed/8231 had zero hits on mypy_primer, so it's not the worst thingto undo. Patching this in typeshed also feels weird, since there's amore general soundness issue. If a typevar has a bound or constraint, wemight not want to solve it to a Literal.If we can confirm the performance regression or fix the unsoundnesswithin mypy, I might pursue upstreaming this in typeshed.(Reminder: add this to the sync_typeshed script once merged)
This is allegedly causing large performance problems, see 13821typeshed/8231 had zero hits on mypy_primer, so it's not the worst thingto undo. Patching this in typeshed also feels weird, since there's amore general soundness issue. If a typevar has a bound or constraint, wemight not want to solve it to a Literal.If we can confirm the performance regression or fix the unsoundnesswithin mypy, I might pursue upstreaming this in typeshed.(Reminder: add this to the sync_typeshed script once merged)
This is allegedly causing large performance problems, see 13821typeshed/8231 had zero hits on mypy_primer, so it's not the worst thingto undo. Patching this in typeshed also feels weird, since there's amore general soundness issue. If a typevar has a bound or constraint, wemight not want to solve it to a Literal.If we can confirm the performance regression or fix the unsoundnesswithin mypy, I might pursue upstreaming this in typeshed.(Reminder: add this to the sync_typeshed script once merged)
This is allegedly causing large performance problems, see 13821typeshed/8231 had zero hits on mypy_primer, so it's not the worst thingto undo. Patching this in typeshed also feels weird, since there's amore general soundness issue. If a typevar has a bound or constraint, wemight not want to solve it to a Literal.If we can confirm the performance regression or fix the unsoundnesswithin mypy, I might pursue upstreaming this in typeshed.(Reminder: add this to the sync_typeshed script once merged)
This is allegedly causing large performance problems, see 13821typeshed/8231 had zero hits on mypy_primer, so it's not the worst thingto undo. Patching this in typeshed also feels weird, since there's amore general soundness issue. If a typevar has a bound or constraint, wemight not want to solve it to a Literal.If we can confirm the performance regression or fix the unsoundnesswithin mypy, I might pursue upstreaming this in typeshed.(Reminder: add this to the sync_typeshed script once merged)
This is allegedly causing large performance problems, see 13821typeshed/8231 had zero hits on mypy_primer, so it's not the worst thingto undo. Patching this in typeshed also feels weird, since there's amore general soundness issue. If a typevar has a bound or constraint, wemight not want to solve it to a Literal.If we can confirm the performance regression or fix the unsoundnesswithin mypy, I might pursue upstreaming this in typeshed.(Reminder: add this to the sync_typeshed script once merged)
This is allegedly causing large performance problems, see 13821typeshed/8231 had zero hits on mypy_primer, so it's not the worst thingto undo. Patching this in typeshed also feels weird, since there's amore general soundness issue. If a typevar has a bound or constraint, wemight not want to solve it to a Literal.If we can confirm the performance regression or fix the unsoundnesswithin mypy, I might pursue upstreaming this in typeshed.(Reminder: add this to the sync_typeshed script once merged)
This is allegedly causing large performance problems, see 13821typeshed/8231 had zero hits on mypy_primer, so it's not the worst thingto undo. Patching this in typeshed also feels weird, since there's amore general soundness issue. If a typevar has a bound or constraint, wemight not want to solve it to a Literal.If we can confirm the performance regression or fix the unsoundnesswithin mypy, I might pursue upstreaming this in typeshed.(Reminder: add this to the sync_typeshed script once merged)
Uh oh!
There was an error while loading.Please reload this page.
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)