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
{{ message }}
Repository navigation
Inconsistency in Union/promotion interactions #6168
And probably the behavior ought to be to not simplify
Yes, I think we should never use promotions in union simplification. Also this looks like something that may be easy to fix. We just need to use ignore_promotions=True in UnionType.make_simplified_union().
Activity
Fix mypy_mypyc crash caused by "complex" interaction
Fix mypy_mypyc crash caused by "complex" interaction (#6169)
ilevkivskyi commentedon Jan 9, 2019
Yes, I think we should never use promotions in union simplification. Also this looks like something that may be easy to fix. We just need to use
ignore_promotions=TrueinUnionType.make_simplified_union().ilevkivskyi commentedon Jul 18, 2019
Added usability label because this can cause confusion, see #7241.
hauntsaninja commentedon Apr 26, 2023
These currently have the same type