-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Release 0.940 planning #12021
Comments
For typeshed, having the following issues fixed would be really nice, if at all possible (I'm trying to work on a solution for the first two in #11915 -- but note that it'll only work for stub files; the bugs will still be there for
|
I would like to suggest my PR from summer last year. It's something that already works in pyright. Once mypy supports it the remaining type checkers might consider it too if they haven't already. It could help cut down duplicate overload definitions in typeshed. The PR is fully tested and only waiting for review. |
I have an almost green typeshed sync here: #11905 I'd like to get #12023 merged (the crash is blocking me at work / has been reported many times). #12005 is an issue we should fix (somewhat, but not fully related to #11887 which we should also fix, but is trickier and not quite as bad). |
I'd really like to see |
I, for one, would prefer a release of functionality that is already merged, on a shorter timescale. I would very much like to see mypy adopt time-based releases, rather than going through a feature crunch that sometimes delays useful working contributions for months. The wait for version 0.920 was literally painful for me and my team. Now I'm waiting for support for |
@JukkaL thoughts on release timeline? master is starting to accumulate a number of nice fixes (including some that would be appreciated at my day job) |
Sorry for the delay! We've had a few(!) viruses going through our family in the last weeks. I was only able to start work on the release yesterday. Since we are late, I'm thinking of focusing on 3.10 features and low-risk changes only. This would mean postponing at least this change to the next release:
I agree that the release process hasn't been going too smoothly in the last several releases. We can discuss options for speeding up releases separately. I've been working on some process changes that may make it feasible to switch to monthly releases, for example, but we'd probably need one or two extra volunteer release managers to help share the work. I opened #12210 to discuss the release process. |
Here's the rough priority order of my next tasks:
|
|
@hauntsaninja Could you also make sure that all stubtest improvements that we depend on in typeshed get into this release? I would like to switch back to stable/matching stubtest and mypy versions ASAP. |
Yes, will try to stay on top of it. Though the issue in my mind is actually more with "stubtest improvements on mypy master that typeshed does not yet use" than "stubtest improvements on mypy master that might not be in 0.940" (e.g. python/typeshed#7346 ) |
After a few additional hiccups, I've cut the release branch. ParamSpec support is postponed to the next release, since there were some open issues. Match statement support is included in this release, including exhaustiveness checking. I'm planning to make the release this Friday, if no significant regressions are found until then. I can cherry-pick low-risk fixes to the release branch until then. The next feature release (probably 0.950) will go out on an accelerated schedule. |
The release is now out: http://mypy-lang.blogspot.com/2022/03/mypy-0940-released.html If you encounter or suspect a regression, please leave a comment here. |
Potential regression #12335 maybe related to the conditional overloads? |
Possible regression for Mypy 0.940:
Errors:
No issue with 0.931. |
|
This enum regression, introduced by mypy v0.930, is still present: #12132 |
Released a hotfix release 0.941 with #12340 since it seemed to affect many users. We'll have at least one additional bugfix release, probably either later this week or the next week. |
Additional potential regressions: |
Mypy 0.942 is out with fixes to several regressions: https://mypy-lang.blogspot.com/2022/03/mypy-0942-released.html At least the performance regression is still open. |
Please consider possible regression
Mypy 0.942 ouputs:
In the past the type would resolve to |
@wrobell I tried that in the playground and got the same behavior in 0.930 and as far back as mypy 0.620. I doubt it's a recent change. Which version was showing a different behavior? |
@JelleZijlstra I can replicate with my original codebase. Cannot replicate with the example above anymore. Not sure what's going on... But there is still something consistently fishy. Please consider for ver. 0.942
then
When there are errors present, then the type is resolved to Let' try this:
then
Setting explicit type to |
Since this isn't a regression, let's move discussion to a separate issue. The original example looks correct to me; note that if you use |
Please consider this example instead
Then for 0.931:
and for 0.942 (0.94x actually):
|
Thanks, the change in behaviour here is from fixing a bad bug on my part that caused TypeAlias to work incorrectly and be treated as If you change your example to use:
you'll find that it reveals "builtins.object*" even on 0.931 (that is, modulo the TypeAlias recognition bug, the underlying type checking logic is the same). Overall, you'll still likely find you want to use a covariant type var. |
@wrobell If you want to report bugs, please open a separate issue and link to it -- rather than spamming the comment thread of another issue. |
@hauntsaninja Thanks for the explanation. @intgr I understand where are you coming from, but such comments are not helpful. |
I actually agree with @intgr though I might not have used the same words. For any other regressions, please open a new separate issue and just leave a brief comment here linking back to the issue. That way, we can keep the conversation more focused. |
@JelleZijlstra I just followed advice in this comment #12021 (comment). Please decide on the process and I am more than happy follow it. 🤷 |
I'm not sure if it's related to the recent release or not (it might have also happened on 0.931), but a lot of people seem to be running into #12475, which appears to be a relatively recent regression |
Closing the issue, since it's been >1 month since 0.940 and I don't see us putting out another bugfix release. Unfortunately there doesn't yet seem to be a repro for #12475 (if it even is a regression, e.g. the original report mentions that they think it happened with 0.931 as well). |
I'm planning to make a 0.940 release in February (tentative timeline). If things go according to plan, I'd cut the release branch in the first half of February.
Here are some things that I'd like to have in the release:
We also need at least one typeshed sync.
Any help with the above issues would be greatly appreciated!
Please post here any issues you'd like to see fixed in the release, or PRs you'd like to have merged. After cutting the release branch, only high-priority fixes can be cherry-picked.
The text was updated successfully, but these errors were encountered: