◐ Shell
clean mode source ↗

[3.10] bpo-44636: Collapse union of equal types (GH-27178) by serhiy-storchaka · Pull Request #27181 · python/cpython

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 d9f9232)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>

@serhiy-storchaka