Skip to content
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

Mypy 1.4 Release Planning #15372

Closed
jhance opened this issue Jun 5, 2023 · 27 comments
Closed

Mypy 1.4 Release Planning #15372

jhance opened this issue Jun 5, 2023 · 27 comments
Labels
meta Issues tracking a broad area of work

Comments

@jhance
Copy link
Collaborator

jhance commented Jun 5, 2023

I'm planning to make a 1.4 release around early July. (This is actually meant to be the June release but it is delayed).

Please post here any issues you'd like to see fixed in the release, or PRs you'd like to have merged. The release branch is available as release-1.4.

@jhance jhance added the bug mypy got something wrong label Jun 5, 2023
@JelleZijlstra
Copy link
Member

I hope you mean the 1.4 release :)

@cdce8p
Copy link
Collaborator

cdce8p commented Jun 6, 2023

Update: Fixed with #15383

The mypy wheel build seems to be broken atm. It seems to be platform specific to x86_64, arm64 isn't affected. More details: #15283 (comment)

Cross posting it here to keep track.

@JukkaL JukkaL changed the title Mypy 0.970 Release Planning Mypy 1.4 Release Planning Jun 6, 2023
@JukkaL
Copy link
Collaborator

JukkaL commented Jun 6, 2023

Updated the version number.

@jhance
Copy link
Collaborator Author

jhance commented Jun 6, 2023

Hmm, I'm not sure how that happened. I suspect I copied the issue template from the oldest link in our table, rather than the newest one, and then incremented that without thinking if the version number made sense.

@AlexWaygood AlexWaygood added meta Issues tracking a broad area of work and removed bug mypy got something wrong labels Jun 6, 2023
@AlexWaygood
Copy link
Member

@AlexWaygood
Copy link
Member

Also, just to note: #15161 caused a LiteralString-related regression for typeshed that still exists on the master branch. I reported the regression here immediately after the PR was merged: #15161 (comment).

It looks like it's probably a typeshed-specific problem, and we can definitely just work around it in typeshed if we need to. So it's not a huge issue by any means. Just thought I'd mention it anyway, though!

@ilevkivskyi
Copy link
Member

ilevkivskyi commented Jun 9, 2023

I am going to work on some recently reported crashes. I will post them here as soon as I have a fix, the first will be #15351

@ilevkivskyi
Copy link
Member

And here is a fix for this crash #15402

@ilevkivskyi
Copy link
Member

And here is a fix for another crash #15403

@ilevkivskyi
Copy link
Member

And yet another crash fix #15404

@hauntsaninja
Copy link
Collaborator

Two crash fixes of mine that didn't make the branch: #15392 #15399

@ilevkivskyi
Copy link
Member

And here is yet another crash fix #15407

@cdce8p
Copy link
Collaborator

cdce8p commented Jun 12, 2023

Would love to see #15413 included. That change alone removes 23 unnecessary type: ignore comments in Home Assistant.

@ilevkivskyi
Copy link
Member

ilevkivskyi commented Jun 15, 2023

I think these two batches are good candidates for cherry-picking:

@ilevkivskyi
Copy link
Member

Oh and one more things, it seems these error codes do not have documentation (at least neither my script nor me have found it):

        known_missing = {
            # TODO: fix these before next release
            "annotation-unchecked",
            "empty-body",
            "possibly-undefined",
            "str-format",
            "top-level-await",
        }

@intgr
Copy link
Contributor

intgr commented Jun 21, 2023

@ymyzk Can you please add mypy 1.4.0 to mypy-play.net?

@ymyzk
Copy link

ymyzk commented Jun 21, 2023

@intgr It should be available on mypy Playground now: ymyzk/mypy-playground#388

@hauntsaninja
Copy link
Collaborator

hauntsaninja commented Jun 21, 2023

Thanks for all the work! Regression for asyncio here #15489 with a potential fix here #15491. This will need a hotfix release (I can make it if you're busy, just let me know)

@ilevkivskyi
Copy link
Member

ilevkivskyi commented Jun 21, 2023

Wait, so this is already released? Is it early July already? What was the point of not including the stable error code links in the release?

@JukkaL
Copy link
Collaborator

JukkaL commented Jun 22, 2023

This was the postponed May mypy release. I think stable error code links arrived too late in the release process, but there will be a 1.5 release in July (targeting early July). @svalentin is the RM for 1.5.

@cdce8p
Copy link
Collaborator

cdce8p commented Jun 23, 2023

In case there is a 1.4.1 release. These fix the wheel build

Fix for typing_extensions dependency issue

@AlexWaygood
Copy link
Member

AlexWaygood commented Jun 23, 2023

You'll probably also want to cherry-pick this, if there is a 1.4.1 release -- our test suite was very broken by the pytest release earlier today:

@hauntsaninja
Copy link
Collaborator

hauntsaninja commented Jun 24, 2023

I've cherry picked the following to the 1.4 release branch:

Fix for async type checking regression

f36ea01e9 (HEAD -> release-1.4) Shantanu: Fix async iterator body stripping (#15491)      (Fri Jun 23 18:12:13 2023)

A fix for typeshed (reverts a PR that fixed another problem that only manifested on typeshed)

ba7887be3             Shantanu: Revert "Fix spurious errors on builtins.open (#15161)" (#15508) (Fri Jun 23 18:12:10 2023)

Docs changes:

16fe5da0b      Ivan Levkivskyi: Fix readthedocs build (#15437)                            (Fri Jun 23 17:54:30 2023)
9b327d12b      Ivan Levkivskyi: Use consistent anchors for error codes (#15435)           (Fri Jun 23 17:54:26 2023)
32abe0210          Ilya Priven: docs: ref redirector (#15432)                             (Fri Jun 23 17:54:14 2023)

Fixes for CI and wheel build:

e5a5b33e1         Alex Waygood: Unbreak CI (#15505)                                       (Fri Jun 23 17:39:48 2023)
81d01aa0b         Marc Mueller: Fix PEP 561 editable install test case (#15493)           (Fri Jun 23 17:39:30 2023)
eba351e40         Marc Mueller: Add pip as test requirement for PEP 660 editable installs (#15482) (Fri Jun 23 17:39:26 2023)
9faffe87c         Marc Mueller: Bump typing_extensions dependency (#15488)                (Fri Jun 23 17:39:21 2023)
7871ed92a             Shantanu: Switch PEP 561 tests to a different build backend (#15451) (Fri Jun 23 17:39:16 2023)
87ddfeeef         hauntsaninja: Add back +dev to version                                  (Fri Jun 23 17:38:45 2023)

Hopefully this is all good. If I don't hear anything, I'll make a patch release this weekend (really excited to have the 1.4 speedups at work, but the async thing is a blocker)

@hauntsaninja
Copy link
Collaborator

I've released mypy 1.4.1

@Avasam
Copy link
Sponsor Contributor

Avasam commented Jul 23, 2023

Was #15429 actually included in 1.4.1 ? I still have the issue where --ignore-missing-imports causes

Restarting: configuration changed
Daemon stopped
Daemon started

@svalentin
Copy link
Collaborator

I don't see it in https://github.com/python/mypy/commits/release-1.4
It will definitely be in release 1.5

@intgr
Copy link
Contributor

intgr commented Jul 25, 2023

The mypy website https://www.mypy-lang.org/ still hasn't been updated to list version 1.4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
meta Issues tracking a broad area of work
Projects
None yet
Development

No branches or pull requests