commit | c3007ab3c6cb384203bac8aa64d89c4b42f671a1 | [log] [tgz] |
---|---|---|
author | Serhiy Storchaka <storchaka@gmail.com> | Fri Jul 16 14:48:20 2021 +0300 |
committer | GitHub <noreply@github.com> | Fri Jul 16 14:48:20 2021 +0300 |
tree | c0829b008569a28ec516b6e13820aaed7210e6c8 | |
parent | 37686f78ccef5f1cf4776419a4270cf0ea7eadf0 [diff] |
[3.10] bpo-44636: Collapse union of equal types (GH-27178) (GH-27181) The result of `int | int` is now `int`. Fix comparison of the union type with non-hashable objects. `int | str == {}` no longer raises a TypeError. (cherry picked from commit d9f923280f204204f8703756aef4f655b579b4b8)