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
The behaviour change is as a result of this typeshed change: python/typeshed#10679. The new behaviour is more accurate, and the change was made to fix a false negative that was reported by a user to typeshed: python/typeshed#10678.
There's a change for sure, but I'm having trouble figuring out if the old or new behavior is correct.
I skimmed the Mypy changelog but didn't find much about this.
Quick reproducer:
On 1.6: no error.
On 1.7:
The PEP gives the following pseudocode for
__or__
:So I guess the new behavior might be more correct? It feels less useful though.
The text was updated successfully, but these errors were encountered: