You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A 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.
Hmm, I think we have an issue, but can't find out what changed. Did we remove typeshed for attr or 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, not object
@svalentin I think something's gone wrong with #15751 (which backported a stubtest fix to the release-1.5 branch).
I can see the change included in the 1.5.0 tag and the release-1.5 branch on GitHub. But if I actually pip install mypy==1.5 into a virtual environment and then open up Lib/site-packages/mypy/stubtest.py in 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 :(
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.
Will make a 1.5.1 release to pick them up!
This is because I had already removed the +dev from 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 +dev from version.
Unfortunately we hit a 10GB limit for the pypi project.
Jukka filed an issue to increase this limit - pypi/support#3094
We 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.
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.
Activity
svalentin commentedon 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.yml
AlexWaygood commentedon Jul 4, 2023
Here you go:
I'm pretty seasoned with these by now 😆
svalentin commentedon Jul 4, 2023
Ah, thanks! :D
cdce8p commentedon Jul 5, 2023
I would like to see this included. It's just missing a final review.
strict_override_decoratoroption (PEP 698) #15512cdce8p commentedon Jul 9, 2023
Small fix for a sqlalchemy issue with the PEP 681 implementation
ikonst commentedon Jul 12, 2023
Fixes a crash introduced in 1.4:
svalentin commentedon Jul 13, 2023
Looks like we have a typeshed bug:
In this simple example mypy says:
Undoing python/typeshed@9e86c60 fixes it
Filed python/typeshed#10457 for record keeping
cdce8p commentedon Jul 13, 2023
A 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.sobolevn commentedon Jul 14, 2023
I think that this is important enough to have a special note: #15668
svalentin commentedon Jul 14, 2023
I think it's best if we leave #15668 for the next release
svalentin commentedon Jul 14, 2023
Created the release-1.5 branch
svalentin commentedon Jul 14, 2023
Hmm, 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
mypy-1.4.1 finds no issues, but master (and release-1.5):
The issue is type should be
attr.Attribute, notobjectcdce8p commentedon Jul 14, 2023
You might want to revert #15021 for
1.5, too. That was one of the first commits in therelease-1.4branch. 3bf9fdc14 remaining items
svalentin commentedon Aug 10, 2023
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/
svalentin commentedon Aug 10, 2023
Closing 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!
AlexWaygood commentedon Aug 11, 2023
@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 :(svalentin commentedon Aug 11, 2023
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.
svalentin commentedon Aug 11, 2023
Will 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.svalentin commentedon Aug 11, 2023
Bumped 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/5832823688
svalentin commentedon Aug 11, 2023
Unfortunately we hit a 10GB limit for the pypi project.
Jukka filed an issue to increase this limit - pypi/support#3094
We 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.
erictraut commentedon Aug 14, 2023
Is there anything remaining for the 1.5 release, or can this be closed?
JelleZijlstra commentedon Aug 14, 2023
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.
AlexWaygood commentedon Aug 16, 2023
The PyPI project limit has been bumped to 20GB: pypi/support#3094 (comment)
svalentin commentedon Aug 16, 2023
Uploaded v1.5.1 to PyPI!
AlexWaygood commentedon Aug 16, 2023
And we've successfully upgraded over at typeshed: python/typeshed@ef758b6
Thanks @svalentin! 🥳