Repository navigation
Conversation
…hon#12816)" This reverts commit 281dd35.
|
No problem; I wouldn't want changes to go through that haven't gotten the vetting that they need. |
|
Diff from mypy_primer, showing the effect of this PR on open source code: |
|
Given that mypy 1.12 uses unions for ternary, we could try this again after we update typeshed to mypy 1.12: https://github.com/python/typeshed/blob/main/requirements-tests.txt#L3 |
So, update first and see whether this helps? This doesn't seem time critical, as I don't think mypy 1.13 is going to be released in the next few days. |
|
Funnily enough I think there will be a mypy 1.13 in the next few days, but it won't include a typeshed sync so we're fine :-) So no time pressure, but would be good to confirm against mypy_primer. Merging this revert might still be the easiest way to do that. Or I guess seeing what it looks like on next typeshed sync to mypy |
|
I kicked off a sync in python/mypy#17994 |
|
Looks like 1.12 does fix the issue with ternary expressions. The change for jax is still there. I think that jax is surfacing the same underlying issue as ibis and psycopg in #12851 (comment) ; They all have the form I don't have an opinion myself as to whether this should or shouldn't block the change. |
|
I think this means we're all good and this revert can be closed :-) |
|
Closing this out then. |
This reverts commit 281dd35.
This one wasn't quite baked yet.
#12816