Repository navigation
Mypy 1.5 Release Planning #15588
Description
Activity
- addedmetaIssues tracking a broad area of workIssues tracking a broad area of work
on Jul 4, 2023 Looks like typeshed syncing is having a conflict when cherry picking "Remove use of LiteralString in builtins" (6f913a148)
https://github.com/python/mypy/actions/workflows/sync_typeshed.ymlLooks like typeshed syncing is having a conflict when cherry picking "Remove use of LiteralString in builtins" (6f913a148) https://github.com/python/mypy/actions/workflows/sync_typeshed.yml
Here you go:
I'm pretty seasoned with these by now 😆
Ah, thanks! :D
Reacted by Alex WaygoodI would like to see this included. It's just missing a final review.
Reacted by Valentin Stanciu and Thomas M KehrenbergSmall fix for a sqlalchemy issue with the PEP 681 implementation
Fixes a crash introduced in 1.4:
Looks like we have a typeshed bug:
from unittest.mock import patch def addition(a: int, b:int) -> int: return a+b @patch('test.addition') def patch_test(mock): print(mock) if __name__ == "__main__": patch_test()In this simple example mypy says:
test.py:12: error: Missing positional argument "mock" in call to "patch_test" [call-arg]Undoing python/typeshed@9e86c60 fixes it
Filed python/typeshed#10457 for record keepingA usability improvement with invalid generic instances. This PR reuses existing args whenever possible instead of replacing everything with
Any. This would match the pyright behavior.I think that this is important enough to have a special note: #15668
I think it's best if we leave #15668 for the next release
Created the release-1.5 branch
Reacted by Marc Mueller and sobolevnHmm, I think we have an issue, but can't find out what changed. Did we remove typeshed for
attror something like that?For this example
import attr @attr.s(frozen=True) class SomeProperties(object): x = attr.ib(type=str) y = attr.ib(type=int) for field in attr.fields(SomeProperties): print(field.name) print(field.metadata)mypy-1.4.1 finds no issues, but master (and release-1.5):
test2.py:9: error: "object" has no attribute "name" [attr-defined] test2.py:10: error: "object" has no attribute "metadata" [attr-defined] Found 2 errors in 1 file (checked 1 source file)The issue is type should be
attr.Attribute, notobject14 remaining items
mypy 1.5 is out!
Read the blog post here - https://mypy-lang.blogspot.com/2023/08/mypy-15-released.html
Also updated the news on the website https://mypy-lang.org/Reacted by Eric TrautReacted by Alex Waygood and Marc MuellerClosing this issue as the release is "done". Of course, if there's any issues please post them and we can reopen for a point release!
@svalentin I think something's gone wrong with #15751 (which backported a stubtest fix to the
release-1.5branch).I can see the change included in the
1.5.0tag and therelease-1.5branch on GitHub. But if I actuallypip install mypy==1.5into a virtual environment and then open upLib/site-packages/mypy/stubtest.pyin the directory of the virtual environment, the change isn't there. That means I've got a very red CI for my PR trying to upgrade typeshed's mypy pin :(Hmm, yes, I see it too.
Commit 7a9418356 is in. That's the commit in where we branched off from main for release 1.5.
Commit 9dd0d396e is in as well.
But 373b73abe or 2ff7c0de5 are not.I think it maybe grabbed the wrong wheels to upload for pypi.
Let me check with Jukka. We might have to do a 1.5.1 release to pick up those two commits as well as they fix regressions.
Reacted by Alex WaygoodWill make a 1.5.1 release to pick them up!
This is because I had already removed the+devfrom the version. And the wheels are built at that point and don't get overridden after our next 2 cherry picks. It wasn't obvious to me the wheels get fixed once we remove the+devfrom version.Reacted by Alex WaygoodBumped version to 1.5.1 in de4f2ad99
Once wheels are built I'll upload them. Follow along in https://github.com/mypyc/mypy_mypyc-wheels/actions/runs/5832823688Reacted by Alex WaygoodUnfortunately we hit a 10GB limit for the pypi project.
Jukka filed an issue to increase this limit - pypi/support#3094We don't think the regressions are serious enough to warrant us deleting some old version of mypy to make room for this point release right now. We can probably wait until pypi increases our limits. Hopefully it shouldn't be longer than a few days.
Reacted by Alex Waygood and Marcel TelkaIs there anything remaining for the 1.5 release, or can this be closed?
We should probably keep this open for the 1.5.1 release (currently blocked on PyPI size limits) and potentially for another bugfix release if there are further regressions.
Reacted by Alex Waygood and Marcel TelkaThe PyPI project limit has been bumped to 20GB: pypi/support#3094 (comment)
Uploaded v1.5.1 to PyPI!
Reacted by Alex Waygood, Michael R. Crusoe and ShantanuAnd we've successfully upgraded over at typeshed: python/typeshed@ef758b6
Thanks @svalentin! 🥳
Reacted by Valentin Stanciu
Planning to make the 1.5 release around middle of July.
Please post here any issues you'd like to see fixed in the release, or PRs you'd like to have merged. Will make the release branch as release-1.5.