Uh oh!
There was an error while loading. Please reload this page.
Cherry pick the typeshed fix for 12339 - #12340
Conversation
The typeshed fix works fine, but is basically a hack to work around a bug in mypy. @sobolevn worked out how to fix the actual bug in #12134. #12134 is still a work in progress — but maybe it would be good to excise the |
JelleZijlstra
commented
Mar 12, 2022
If we want to do a bugfix mypy release it's probably easier to merge this simple change. |
AlexWaygood
commented
Mar 12, 2022
Yes, fair enough — best to keep it simple. |
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉 |
JukkaL
left a comment
There was a problem hiding this comment.
Ok, let's use this as a tempory fix.
Description
Typeshed cherry-pick: Use import instead of type alias in
email/message.pyi(#7022)Fixes#12339
(Explain how this PR changes mypy.)
I've confirmed that this resolves the type checking error introduced in 0.940 using hamcrest as a testbed.